>> L = [[9, 1], [3, 4]] >> sorted(L, key=lambda x:x[0]) [[3,4], [9,1]]
The above will sort the list according to the first element, me