Fix tests. Sort results so they're not in hash random order.