I'm looking to return a new hash based on the reordering of values in the hash. The values, themselves, are arrays of ints.
For example:
hsh = {"c2" => [44,2], "c1" => [11,33], "c9" => [23,7]}
I would like to be able to return a reordered hash based on either value 0 or value 1 in the values.
Any help here is much appreciated - thanks all.