`sorted` should be able to operate on the set without converting to a `list` first.