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