Closed brandonywl closed 3 years ago
Timetable should not be mutated in this fashion. I suspect that this is due to timetable and ListEventCommand or how StorageManager calls/saves the events.
Identified the issue to be when events are loaded. Only some of them are sorted or shifted in index.
Identified it to be loading non-recurring event first, then recurring event. Thus order will be shifted around and all recurring events will be placed last.
No picture present. Timetable was only sorted after list-e. Perhaps implement a sort function on timetable and call it after each AddEventCommand.