Hi all,\nI have a problem and I'm not sure whether sort() can help me.\nI understand that if I have a list; say L = ['b', 'c', 'a']\nI can use L.sort() and I will then have; L = ['a', 'b', 'c']\n\nBut my problem is this. I have a list, that contains a number of\nembeded lists;\ne.g. L2 = [['something', 'bb'], ['somethingElse', 'cc'],\n['anotherThing', 'aa']]\nNow I want to sort this list by the second item of each sublist. So\nthe outcome I would like is;\nL2 = [['anotherThing', 'aa'], ['something', 'bb'], ['somethingElse',\n'cc']]\n\nIs there a way I can use sort for this? Or am I going to have write a\ncustom function to sort this out?\n\nMany thanks.