Sort search results with tests.