Possible Duplicate:
TreeMap sort by value
Map that could be iterated in the order of values
I have a TreeMap of type <String, Date>
. I want to sort it by the Dates (most recent first), and I can't use them as the keys as I cannot guarantee that they will be unique. Is there any way to do this?