Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
bc2d1e27ad
Sort rankings best to worst 2024-10-11 17:58:17 -04:00

View file

@ -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()) {