add sorting to search results