Sort output of results.