diff --git a/classes/issue/Collector.php b/classes/issue/Collector.php index 9f6bb650a0d..b09956b3dce 100644 --- a/classes/issue/Collector.php +++ b/classes/issue/Collector.php @@ -140,6 +140,9 @@ public function filterByIssueIds(?array $issueIds): static public function orderBy(string $orderByConstant): static { $this->resultOrderings = match ($orderByConstant) { + static::ORDERBY_DATE_PUBLISHED => [ + ['orderBy' => 'i.date_published', 'direction' => static::ORDER_DIR_DESC] + ], static::ORDERBY_LAST_MODIFIED => [ ['orderBy' => 'i.last_modified', 'direction' => static::ORDER_DIR_DESC] ],