Tuples

Python

Python - Sort List of Tuples

Python sorts lists of tuples lexicographically by default. The comparison starts with the first element of each tuple, then moves to subsequent elements if the first ones are equal.

Read more →