From 4124a858f6b51a79064400d9178e830a336f6559 Mon Sep 17 00:00:00 2001 From: HWFord <54360213+HWFord@users.noreply.github.com> Date: Fri, 15 Nov 2024 15:26:55 +0100 Subject: [PATCH] fixes #2279 sort list of dates by array key for creation and posted date --- include/search_filters.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/search_filters.inc.php b/include/search_filters.inc.php index e020b771a..82e6591c2 100644 --- a/include/search_filters.inc.php +++ b/include/search_filters.inc.php @@ -214,6 +214,7 @@ SELECT } } } + krsort($date_posted['list_of_dates']); $template->assign('LIST_DATE_POSTED', $date_posted['list_of_dates']); $template->assign('DATE_POSTED', $counters); @@ -317,6 +318,8 @@ SELECT } } } + krsort($date_created['list_of_dates']); + $template->assign('LIST_DATE_CREATED', $date_created['list_of_dates']); $template->assign('DATE_CREATED', $counters); }