From 696cbd6f17cc1135973fa14f4d5269b9d2360e1e Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Wed, 17 Mar 2021 03:06:37 -0700 Subject: [PATCH] Sort header search results by date --- Rocksolid_Light/rocksolid/search.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Rocksolid_Light/rocksolid/search.php b/Rocksolid_Light/rocksolid/search.php index 228b51b..ef875d3 100644 --- a/Rocksolid_Light/rocksolid/search.php +++ b/Rocksolid_Light/rocksolid/search.php @@ -329,6 +329,9 @@ function get_header_search($group, $terms) { } $dbh=null; } + usort($overview, function($b, $a) { + return $a['date'] <=> $b['date']; + }); return $overview; }