sortEventListAscTime function

Future<List> sortEventListAscTime(
  1. 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;
}