(self, order=None)
return self.class_key(), (len(args), args), S.One.class_key(), S.One
Give sort_key of infimum (if possible) else sort_key of the set.
Give sort_key of infimum (if possible) else sort_key of the set.
Give sort_key of infimum ( if possible ) else sort_key of the set .
def sort_key(self, order=None):
        """
        Give sort_key of infimum (if possible) else sort_key of the set.
        """
        try:
            infimum = self.inf
            if infimum.is_comparable:
                return default_sort_key(infimum, order)
        except (NotImplementedError, ValueError):
            pass
        args = tuple([default_sort_key(a, order) for a in self._sorted_args])
        return self.class_key(), (len(args), args), S.One.class_key(), S.One
def sort_key ( self , order = None ) : try : infimum = self . inf if infimum . is_comparable : return default_sort_key ( infimum , order ) except ( NotImplementedError , ValueError ) : pass args = tuple ( [ default_sort_key ( a , order ) for a in self . _sorted_args ] ) return self . class_key ( ) , ( len ( args ) , args ) , S . One . class_key ( ) , S . One