Fixed sorting on search page.