Sorting the search list