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