I consider it bad design to implement Comparable in the base class, considering there's more ways than just priority that you may want to compare. I haven't looked into the code, but it's possible that is' handled nativley by the VM, or that there's Comparators out there that do this. See http://java.sun.com/j2se/1.4.2/docs/api/java/util/Arrays.html#sort(java.lang.Object[],%20java.util.Comparator)
|