sorting fixed for search page.