Python – How to sort a list of lists by the fourth element in each list? [duplicate]

unsorted_list.sort(key=lambda x: x[3])

Leave a Comment