Skip to content

Commit

Permalink
Fix intra-day event order in calendar (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanthoss authored Dec 16, 2024
1 parent 2056b1e commit 72d239b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ics_cal/icshelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ def retrieve_events(self, ics_url, startDatetime, endDatetime, localTZ):

event_list.append(new_event)

return event_list
return sorted(event_list, key=lambda k: k["startDatetime"])

0 comments on commit 72d239b

Please sign in to comment.