corrected bug: after giving sort criteria the current page number updated correctly (to first page)