Skip to content

Commit

Permalink
Merge pull request #48 from alexplusde/order-by-multiple
Browse files Browse the repository at this point in the history
OrderBy startDate and startTime
  • Loading branch information
alxndr-w authored Dec 27, 2023
2 parents ce1ddcf + 211f138 commit 7ac0c40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/event_category.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

/**
Expand Down

0 comments on commit 7ac0c40

Please sign in to comment.