I have a data structure like:
[ ["id1", 123], ["id2", 1], ["id3", 6] ]
and I would like to ordered it (descendingly) according to the second variable, like this:
[ ["id1", 123], ["id3", 6], ["id2", 1] ]
I could write up a little function for doing that, but I am almost sure there's a cool one liner way of doing it, isn't there? Thanks.