Sort rankings best to worst
This commit is contained in:
parent
381628e571
commit
bc2d1e27ad
1 changed files with 1 additions and 1 deletions
|
@ -256,7 +256,7 @@ while ($row = $stmt->fetch()) {
|
||||||
$categories[] = $row;
|
$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();
|
$stmt->execute();
|
||||||
$ranks = array();
|
$ranks = array();
|
||||||
while ($row = $stmt->fetch()) {
|
while ($row = $stmt->fetch()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue