Sorting query expansions.