sort a list of lists `l` by index 2 of the inner list,l.sort(key=(lambda x: x[2]))