diff --git a/src/ics_cal/icshelper.py b/src/ics_cal/icshelper.py index d3d3489..7696fd5 100644 --- a/src/ics_cal/icshelper.py +++ b/src/ics_cal/icshelper.py @@ -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"])