'<' not supported between 2 instances of IndexMark

Fixes #012467
This commit is contained in:
SNoiraud 2021-11-06 10:09:05 +01:00 committed by Nick Hall
parent b8e5eacbbe
commit f5202a9ab8

View File

@ -267,7 +267,8 @@ class Calendar(Report):
day_col * cell_width + cell_width/2,
header + week_row * cell_height)
list_ = self.calendar.get(month, {}).get(thisday.day, [])
list_.sort() # to get CAL-Holiday on bottom
# sort the list to get CAL-Holiday on bottom
list_.sort(key=lambda x: (x[0], x[1]))
position = spacing
for (format, p, m_list) in list_:
for line in reversed(p.split("\n")):