Skip to content

Commit

Permalink
Update src/Controller/Component/CalendarComponent.php
Browse files Browse the repository at this point in the history
Co-authored-by: Paolo Cuffiani <[email protected]>
  • Loading branch information
edoardocavazza and fquffio authored Apr 19, 2023
1 parent d034a17 commit aeac9c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/Component/CalendarComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ public function findGroupedByDay(Query $query, FrozenTime $from, FrozenTime|null
->map(fn (array $items): array => collection($items)
->extract('event')
->sortBy(
fn (ObjectEntity $event): string => collection($event->primary_date_range)->first()->start_date->format('c'),
fn (ObjectEntity $event): string => $event->get('primary_date_range')->start_date->format('c'),
SORT_ASC,
SORT_NATURAL
)
Expand Down

0 comments on commit aeac9c9

Please sign in to comment.