Re: Hashtable sorting by values
Posted By:
John_Zukowski
Posted On:
Tuesday, September 25, 2001 01:27 AM
Use two maps. One in each direction. The second one should be a TreeMap so it is sorted. Use the second for display and the first for lookup.
Re: Hashtable sorting by values
Posted By:
Peter_McEvoy
Posted On:
Monday, September 24, 2001 09:51 AM
I had the same problem, and to avoid messy coding, I decided to use a TreeSet object instead: It has similar functionality to HashTable, but the default set is ordered!