listという名前の変数に代入するなと(ry

汎用的なやり方としては(タプルの二番目の要素でソートする例)

L=[('apple', 3),('banana',2),('orange',1)]
L.sort(key=lambda x: x[1])