From 08924a5418e2179f609996d3150de3c101fd664e Mon Sep 17 00:00:00 2001 From: Marco Rieser Date: Thu, 26 Feb 2026 15:35:59 +0100 Subject: [PATCH] Sort merged occurrences in event output. --- src/Tags/Events.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tags/Events.php b/src/Tags/Events.php index 5fdf720..7e40938 100755 --- a/src/Tags/Events.php +++ b/src/Tags/Events.php @@ -43,7 +43,7 @@ public function calendar(): Collection ->groupBy(fn (Entry $occurrence) => $occurrence->start->toDateString()) ->map(fn (EntryCollection $occurrences, string $date) => $this->day(date: $date, occurrences: $occurrences)); - return $this->output($this->makeEmptyDates(from: $from, to: $to)->merge($occurrences)->values()); + return $this->output($this->makeEmptyDates(from: $from, to: $to)->merge($occurrences)->sort()->values()); } public function downloadLink(): string