I have a hash like below
a ={
0: [0, "A9"],
2: [0, "A9.4"],
8: [0, "A9.1"],
6: [1, "A9.5"],
5: [0, "A9.2"],
7: [2, "A9.3"]
};
I need a sorted array corresponding to the second element of the array of every Value.
i.e if my array is in the form of a = {key: [value_1_integer, value_2_string]}
I need to sort my hash by value_2_string
so result array is
result = [0, 8, 5, 7, 2, 6]