I have an "array of arrays" that has two values included at a time.
array = [[:tuesday, 0.25], [:monday, 1], [:thursday, 0.75]]
I'd like to use the number in the "child" array to sort the "parent" array in descending order. The result would look like:
array = [[:monday, 1], [:thursday, 0.75], [:tuesday, 0.25]]
I'm not too sure where to begin here.