reset pagination on query sort