]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Sort votes in decreasing order, not increasing.
authorterry%mozilla.org <>
Tue, 12 Oct 1999 04:17:17 +0000 (04:17 +0000)
committerterry%mozilla.org <>
Tue, 12 Oct 1999 04:17:17 +0000 (04:17 +0000)
buglist.cgi

index 6afbbf12ab2a384e1d7a22c3c8b4991308d18809..cdd5ba0777e9fe72f4facb63b7c4d0be77e43c44 100755 (executable)
@@ -173,7 +173,7 @@ DefCol("version", "substring(bugs.version, 1, 5)", "Vers", "bugs.version");
 DefCol("os", "substring(bugs.op_sys, 1, 4)", "OS", "bugs.op_sys");
 DefCol("target_milestone", "bugs.target_milestone", "TargetM",
        "bugs.target_milestone");
-DefCol("votes", "bugs.votes", "Votes", "bugs.votes");
+DefCol("votes", "bugs.votes", "Votes", "bugs.votes desc");
 
 my @collist;
 if (defined $::COOKIE{'COLUMNLIST'}) {
@@ -530,7 +530,7 @@ foreach my $c (@collist) {
             $tablestart .= "<TH valign=left>";
         }
         if (defined $::sortkey{$c}) {
-            $tablestart .= "<A HREF=\"buglist.cgi?$fields&order=$::sortkey{$c}$oldorder\">$::title{$c}</A>";
+            $tablestart .= "<A HREF=\"buglist.cgi?$fields&order=" . url_quote($::sortkey{$c}) . "$oldorder\">$::title{$c}</A>";
         } else {
             $tablestart .= $::title{$c};
         }
@@ -636,6 +636,7 @@ print "
 
 if (defined $::FORM{'debug'}) {
     print "<PRE>$query</PRE>\n";
+    print "::FORM{'order'} is <pre>$::FORM{'order'}</pre>\n";
 }
 
 if ($toolong) {