sort list of lists `L` by the second item in each list,L.sort(key=operator.itemgetter(1))