in releasedocmaker/src/main/python/releasedocmaker/jira.py [0:0]
def __lt__(self, other):
if SORTTYPE == 'issueid':
# compare by issue name-number
selfsplit = self.get_id().split('-')
othersplit = other.get_id().split('-')
result = selfsplit[0] < othersplit[0]
if not result:
result = int(selfsplit[1]) < int(othersplit[1])
# dec is supported for backward compatibility
if SORTORDER in ['dec', 'desc']:
result = not result
elif SORTTYPE == 'resolutiondate':
dts = dateutil.parser.parse(self.fields['resolutiondate'])
dto = dateutil.parser.parse(other.fields['resolutiondate'])
result = dts < dto
if SORTORDER == 'newer':
result = not result
return result