From 7675dcd7a7620b36678ca82a85c1f21454ed2cfd Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 18 Jun 2019 13:49:37 +0200 Subject: buildmaster/build-list.php: some columns should sort reversely by default --- buildmaster/build-list.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'buildmaster') 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 = ""; -- cgit v1.2.3-70-g09d2