From bc2d1e27ad91e7ecf5e5a19ab04ca68243f49e2a Mon Sep 17 00:00:00 2001 From: Michael Erdely Date: Fri, 11 Oct 2024 17:58:17 -0400 Subject: [PATCH] Sort rankings best to worst --- src/item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/item.php b/src/item.php index d5964b3..e2f8538 100644 --- a/src/item.php +++ b/src/item.php @@ -256,7 +256,7 @@ while ($row = $stmt->fetch()) { $categories[] = $row; } -$stmt = $smarty->dbh()->prepare("SELECT ranking, title FROM {$opt["table_prefix"]}ranks ORDER BY rankorder"); +$stmt = $smarty->dbh()->prepare("SELECT ranking, title FROM {$opt["table_prefix"]}ranks ORDER BY rankorder DESC"); $stmt->execute(); $ranks = array(); while ($row = $stmt->fetch()) {