pub fn sort_by_duration(events: Vec<Event>) -> Vec<Event>
Sort a list of events by duration with the highest duration first