@total_ordering
class MinType(object):

    def __le__(self, other):
        return True

def __eq__(self, other):
    return self is other
Min = MinType()
Sorting list by an attribute that can be None