Re: SortedMap in reverse order

2004-07-19 Thread Raphael . X . Mankin%GSK%SB
Hvae you looked at java.util.Collections? See the methods reverse(), which reverses (moodifes) the collection, and reverseOrder(), which just provides a convenient comparator. Try something like // Create a TreeMap that sorts in the reverse order SortedMap sortedMap = ne

RE: SortedMap in reverse order

2004-07-19 Thread Thomas Fischer
Hi Veronique, you have to use the constructor TreeMap(Comparator c) contructor and provide a comparator implementation which sorts the key in the right order. Thomas P.S. :A small hint: as this is not a torque-related question, you are lucky to get this question answered here. Veronique