I have the following vector:
a = [['UK', 'FR', **numero**], ['UK', 'NL', **numero**], ['UK', 'PT', **numero**]]
Where the variable number are floating point values and different.
I want to sort the vector elements according to the values of the number
For example:
I have the following vector and their values.
a = [['UK', 'FR', 0.021], ['UK', 'NL', 0.094], ['UK', 'PT', 0.034]]
After the sort operation, I need it to look like this:
a = [['UK', 'NL', 0.094], ['UK', 'PT', 0.034], ['UK', 'FR', 0.021]]
How can I do this?