I have an hashable that contains a string key , and a class object value:
Hashtable<String,myclass>m_class_table = new Hashtable<String,myclass>();
inside ‘myclass’ I have a String field value,
I need to sort my hashtable according to this string value.
I can’t just sort it by the hashtable values beacuse it is an object..
How can this be done?
Thank’s In Advance.
A slight variation on aioobe’s answer: I’d create a List of the Map entries and sort that list. That way you still have access to the complete map entries.