Python sorts lists of tuples by looking at the elements of the tuples, in order. Since sets are unordered, how does Python sort a list of sets?
Edit: The question an
Sets are partially ordered, so
the output of the list.sort() method is undefined for lists of sets.
https://docs.python.org/3/library/stdtypes.html#set