diff --git a/daemon/src/gps.rs b/daemon/src/gps.rs index 83ff70e..057b46f 100644 --- a/daemon/src/gps.rs +++ b/daemon/src/gps.rs @@ -94,6 +94,7 @@ pub async fn load_gps_records(file: tokio::fs::File) -> Vec { } } } + records.sort_by_key(|r| r.unix_ts); records }