when changing sort, go to page 1