Hi there,
You do not need to override your equals() method in the comparator, since your compare(Object o1, Object o2) method returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
The way you implemented your compare() method seems to be wrong. Do read the API for more information. Assuming your input objects have an attribute of the type Date/Timestamp, you could compare the 2 of them and return the right value accordingly.
Hope this helps.
