class ReverseDateKeyComparator implements Comparator { int compare(o1, o2) { o1.date.compareTo(o2.date) * -1 } }