From 40dc385d7b6975d13501f84ad90ba5a6b6b3b79b Mon Sep 17 00:00:00 2001 From: Matt Way Date: Tue, 3 Sep 2024 20:11:29 +1000 Subject: [PATCH] Fix candidate sorting in template --- php-template/template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php-template/template.php b/php-template/template.php index 5359fc4..2baa11d 100644 --- a/php-template/template.php +++ b/php-template/template.php @@ -103,7 +103,7 @@ function sluggify($input) { if ($a == $b) { return 0; } - return (((int) $a) < ((int) $b)) ? 1 : -1; + return (((int) $a['Rating']) < ((int) $b['Rating'])) ? 1 : -1; }); if (count($wardCandidates) > 0):