Skip to content

Commit 409a559

Browse files
committed
correctly sorting events by date
1 parent 0c82b94 commit 409a559

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/event.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ impl EventHandler {
116116
short_events.push(short_event_ptr);
117117
}
118118

119-
events.sort_by(|a, b| b.start_time.cmp(&a.start_time));
119+
events.sort_by(|a, b| a.start_time.cmp(&b.start_time));
120120

121121
Ok(Self {
122122
events: Arc::new(events),

0 commit comments

Comments
 (0)