@astonerbum said:A set does not garantee any particular order. So the coder is just dumb. Or they can use a TreeSet which garantees order. DUH! http://java.sun.com/j2se/1.4.2/docs/api/java/util/TreeSet.html and look its 1.4.2 not some fancy shmancy java 6 construct! Yeah, fine.  Sorted by the class's natural order.  So then the user wants to see things in another order.  Whaddaya gonna do?  Redefine the element class on the fly?  You've proven you can check out an API, now check out LinkedHashSet, reread my previous post, and learn something. And yes, you can construct another set with a different Comparator, but then you're using a different object, aren't you?