Hi all,
I have a sort questions. I can't really find an easy way to do this, so any advice is appreciated. Basically, I have a few dictionaries as such:
{a:[7,8,9]}
{b:[4,5,6,]}
{c:[1,2,3]}
Is there any easy way to sort by the second item in the list such that I get:
{c:[1,2,3]}
{b:[4,5,6,]}
{a:[7,8,9]}
I can do something similar in the shell with sort -k, but I'm not sure if there is a simple way to do this in python. Any help is appreciated!
