Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Yanifska on July 23, 2014, 05:40:29 PM

Title: Sort a HashTable by value
Post by: Yanifska 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