onez

onez

  • NA
  • 73
  • 0

Sorting Hashtable

Sep 14 2004 6:50 PM
I have a hashtable with strings as keys and numbers as values. I want to be able to sort the hashtable by the values in ascending order, and also have the keys still correspond. It seems the only way to do this is to turn the values and keys into ArrayLists and sort them, which is difficult to keep track of the changes. Before I go make this class, I would appreciate any suggestions for easier ways to go about this.

Answers (5)