Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/buildmaster
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-06-18 13:49:37 +0200
committerErich Eckner <git@eckner.net>2019-06-18 13:49:37 +0200
commit7675dcd7a7620b36678ca82a85c1f21454ed2cfd (patch)
tree9f08860e97d2ca7daae1c88605b3240501c5f3a4 /buildmaster
parentee8d483a95dd089442f5d151c52ae708b3a2c606 (diff)
buildmaster/build-list.php: some columns should sort reversely by default
Diffstat (limited to 'buildmaster')
-rw-r--r--buildmaster/build-list.php3
1 files changed, 3 insertions, 0 deletions
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 = "";