diff --git a/src/event.rs b/src/event.rs index 4c9065e..d3d2734 100644 --- a/src/event.rs +++ b/src/event.rs @@ -116,7 +116,7 @@ impl EventHandler { short_events.push(short_event_ptr); } - events.sort_by(|a, b| b.start_time.cmp(&a.start_time)); + events.sort_by(|a, b| a.start_time.cmp(&b.start_time)); Ok(Self { events: Arc::new(events),