EffortKey.__cmp__()
# - - - 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))