index : archweb32 | |
Archlinux32 website | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | buildmaster/build-list.php | 4 |
diff --git a/buildmaster/build-list.php b/buildmaster/build-list.php index 792a0e2..31d0dd6 100644 --- a/buildmaster/build-list.php +++ b/buildmaster/build-list.php @@ -154,8 +154,10 @@ if (!isset($_GET["sort"])) if (substr($_GET["sort"],0,1) == "-") { $direction = " DESC"; $sort = substr($_GET["sort"],1); -} else +} else { + $direction = " ASC"; $sort = $_GET["sort"]; +} if (isset($columns[$sort])) $order = "IFNULL(" . $columns[$sort]["mysql_name"] . ",0) " . $direction . ","; |