sortEventListAscTime function
- List eventsList
Implementation
Future<List<ffi.CalendarEvent>> sortEventListAscTime(
List<ffi.CalendarEvent> eventsList,
) async {
eventsList.sort(
(a, b) => a.utcStart().timestamp().compareTo(b.utcStart().timestamp()),
);
return eventsList;
}