sort list of tuples by two elements python code example
Example: python sort list according to two elements in tuple
sorted(unsorted, key=lambda element: (element[1], element[2]))
sorted(unsorted, key=lambda element: (element[1], element[2]))