Sort search results.