Handling per page results and sorting

In advanced search page