sort search results into the same order provided in raw_results