Next / Previous / Contents / TCC Help System / NM Tech homepage

49.2. EffortKey.__cmp__()

cbchistlib.py
# - - -   E f f o r t K e y . _ _ c m p _ _

    def __cmp__(self, other):
        '''Sort in ascending order by (year_no, year_key)
        '''
        return cmp((self.year_no, self.year_key),
                   (other.year_no, other.year_key))