From 7a62faecef58282fd0c4fdba01902b141ce23c49 Mon Sep 17 00:00:00 2001 From: ggman12 Date: Sun, 15 Feb 2026 20:33:06 -0500 Subject: [PATCH] sort by time in end --- src/adsb/combine_chunks_to_csv.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/adsb/combine_chunks_to_csv.py b/src/adsb/combine_chunks_to_csv.py index b14082c..709c3cd 100644 --- a/src/adsb/combine_chunks_to_csv.py +++ b/src/adsb/combine_chunks_to_csv.py @@ -130,6 +130,9 @@ def download_and_merge_base_release(compressed_df: pl.DataFrame) -> tuple[pl.Dat # No deduplication needed since they represent different UTC days combined = pl.concat([base_df, compressed_df]) print(f"After concat: {len(combined)} records") + + # Sort by time for consistent output + combined = combined.sort('time') return combined, earliest_date