Using tuples to Complex Sorting Operations in Swift

The Swift standard library contains several overloads of the < comparison operator used to compare tuples of various sizes. In this post, Leonardo Maia Pugliese demonstrates how to use these overloads to implement complex sorting operations.