sort the order of search results