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