diff --git a/lib/event_category.php b/lib/event_category.php index 97d82ed..b53d74a 100644 --- a/lib/event_category.php +++ b/lib/event_category.php @@ -229,7 +229,7 @@ public function setUrl(string $url): self */ public function getDateWhere($whereRaw = ''): ?rex_yform_manager_collection { - return event_date::query()->joinRelation('event_category_id', 'c')->where('c.id', $this->getId())->whereRaw($whereRaw)->orderBy('startDate`, `startTime', 'DESC')->find(); + return event_date::query()->joinRelation('event_category_id', 'c')->where('c.id', $this->getId())->whereRaw($whereRaw)->orderBy('startDate', 'DESC')->orderBy('startTime', "DESC")->find(); } /**