index : archweb32 | |
Archlinux32 website | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | buildmaster/build-list.php | 3 |
diff --git a/buildmaster/build-list.php b/buildmaster/build-list.php index 6d42b69..793a31a 100644 --- a/buildmaster/build-list.php +++ b/buildmaster/build-list.php @@ -116,6 +116,7 @@ $columns = array( "mysql_name" => "dependending_blocked", "mysql_query" => "IFNULL(`ba_q`.`currently_blocking`,0)", "sort" => "blocks", + "sort_reverse" => true, "title" => "number of dependending build orders on the build-list" ), "arch" => array( @@ -255,6 +256,8 @@ if (substr($_GET["sort"],0,1) == "-") { if (isset($columns[$sort])) $order = "IFNULL(" . $columns[$sort]["mysql_name"] . ",0) " . $direction . ","; + if (array_key_exists("sort_reverse", $columns[$sort])) + $order = "-" . $order; else $order = ""; |