29_timesheet-management #64

Merged
kfickel merged 9 commits from 29_timesheet-management into main 2026-04-02 18:17:37 +02:00
Showing only changes of commit 7bee32886f - Show all commits

View file

@ -235,11 +235,11 @@ pub fn generate_report(
}
}
// Sort months in descending order (most recent first)
// Sort months in ascending order (oldest first, newest at bottom)
month_reports.sort_by(|a, b| {
let a_date = (a.year, a.month);
let b_date = (b.year, b.month);
b_date.cmp(&a_date)
a_date.cmp(&b_date)
});
Ok(TimesheetReport::new()