order a list of lists `l1` by the first value,l1.sort(key=lambda x: int(x[0]))