To extend off of javapenguin's post, Arrays.sort (as does Collections.sort) requires the objects to be sorted to implement Comparable. See the following link for details on how to implement this...