def __cmp__(self, other): diff = builtins.cmp(self.qvalue, other.qvalue) if diff == 0: diff = builtins.cmp(str(self), str(other)) return diff
def __cmp__(self, other): return builtins.cmp(self.value, other.value)