index : website | |
Archlinux32 website - obsolete | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2019-06-18 13:49:37 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-06-18 13:49:37 +0200 |
commit | 7675dcd7a7620b36678ca82a85c1f21454ed2cfd (patch) | |
tree | 9f08860e97d2ca7daae1c88605b3240501c5f3a4 /buildmaster | |
parent | ee8d483a95dd089442f5d151c52ae708b3a2c606 (diff) |
-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 = ""; |