Fixed sort/query persistence on pagination.