Add sorting to the advanced search page.