> import operator > L=[['c',2],['d',1],['a',4],['b',3]] > sorted(L, key=operator.itemgetter(1)) > L > [['d',1],['c',2],['b',3],['a',4]]