playMaker

Author Topic: Sort a HashTable by value  (Read 1911 times)

Yanifska

  • Full Member
  • ***
  • Posts: 163
    • My Portfolio
Sort a HashTable by value
« on: July 23, 2014, 05:40:29 PM »
Hi Jean,

I am trying to sort a hashtable and I am stuck with the solution you proposed on another thread.
You suggested to copy the values to an array list, sort this arraylist, go through the sorted list and then find the according Key on the Hash table.
The problem is there is no action to get a Key from a Value.

So how can I do that? Could you make an action that use the answer here :
 http://stackoverflow.com/questions/3101626/sort-hashtable-by-possibly-non-unique-values

thanks
yaniv
Visit my portfolio: http://www.yanivcahoua.com/