Skip to content

Commit

Permalink
reverse ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
tanneberger committed Jun 16, 2024
1 parent edd640d commit f5e31fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ impl EventHandler {
short_events.push(short_event_ptr);
}

short_events.sort_by(|a, b| a.start_time.cmp(&b.start_time));
events.sort_by(|a, b| a.start_time.cmp(&b.start_time));
short_events.sort_by(|a, b| b.start_time.cmp(&a.start_time));
events.sort_by(|a, b| b.start_time.cmp(&a.start_time));

Ok(Self {
events: Arc::new(events),
Expand Down

0 comments on commit f5e31fc

Please sign in to comment.