How to sort a Set (Java in General forum at JavaRanch)
I need to sort a Set how can I do that. Thanks. ... The short answer, is "you can't". A Set is not an ordered Collection. A longer, and hopefully more useful, answer is that there are a variety of ways that you can get a sorted version of the information ...