paginate search and sort working together