Skip to content

Commit

Permalink
correctly sorting events by date
Browse files Browse the repository at this point in the history
  • Loading branch information
tanneberger committed Jun 16, 2024
1 parent 0c82b94 commit 409a559
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 409a559

Please sign in to comment.