As pointed out in __key__ parameter for classes in Python, Python3.x has functools.total_ordering, but it still requires manually implementing __lt__
functools.total_ordering
__lt__