Can you sort a Set?

Depending on the use case a PriorityQueue may be a good option.