Sorting of the search results