mirror of
https://github.com/jhbruhn/ics-adapter.git
synced 2025-03-15 11:35:49 +00:00
Sort calendar entries by start time
This commit is contained in:
parent
018e219b04
commit
a89a0dbd3a
1 changed files with 2 additions and 0 deletions
|
@ -100,6 +100,8 @@ async fn convert(urls: &[&str], days: Option<&String>) -> Result<CustomCalendar>
|
||||||
calendar_index += 1;
|
calendar_index += 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
entries.sort_by(|a, b| a.start.cmp(&b.start));
|
||||||
|
|
||||||
Ok(CustomCalendar{entries})
|
Ok(CustomCalendar{entries})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue