Skip to content

Commit 08924a5

Browse files
committed
Sort merged occurrences in event output.
1 parent a7a737e commit 08924a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Tags/Events.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function calendar(): Collection
4343
->groupBy(fn (Entry $occurrence) => $occurrence->start->toDateString())
4444
->map(fn (EntryCollection $occurrences, string $date) => $this->day(date: $date, occurrences: $occurrences));
4545

46-
return $this->output($this->makeEmptyDates(from: $from, to: $to)->merge($occurrences)->values());
46+
return $this->output($this->makeEmptyDates(from: $from, to: $to)->merge($occurrences)->sort()->values());
4747
}
4848

4949
public function downloadLink(): string

0 commit comments

Comments
 (0)