From 687923da316acb12c22c7bd349f871e5ce8f812a Mon Sep 17 00:00:00 2001 From: Thiago Brasil <79112589+thiagolepidus@users.noreply.github.com> Date: Tue, 4 Jun 2024 12:57:03 -0400 Subject: [PATCH] Add ordering of issues by date published (#4296) --- classes/issue/Collector.php | 3 +++ 1 file changed, 3 insertions(+) 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] ],