Commit cffbaf4b authored by terry%mozilla.org's avatar terry%mozilla.org

Sort votes in decreasing order, not increasing.

parent f0726cc7
...@@ -173,7 +173,7 @@ DefCol("version", "substring(bugs.version, 1, 5)", "Vers", "bugs.version"); ...@@ -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("os", "substring(bugs.op_sys, 1, 4)", "OS", "bugs.op_sys");
DefCol("target_milestone", "bugs.target_milestone", "TargetM", DefCol("target_milestone", "bugs.target_milestone", "TargetM",
"bugs.target_milestone"); "bugs.target_milestone");
DefCol("votes", "bugs.votes", "Votes", "bugs.votes"); DefCol("votes", "bugs.votes", "Votes", "bugs.votes desc");
my @collist; my @collist;
if (defined $::COOKIE{'COLUMNLIST'}) { if (defined $::COOKIE{'COLUMNLIST'}) {
...@@ -530,7 +530,7 @@ foreach my $c (@collist) { ...@@ -530,7 +530,7 @@ foreach my $c (@collist) {
$tablestart .= "<TH valign=left>"; $tablestart .= "<TH valign=left>";
} }
if (defined $::sortkey{$c}) { 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 { } else {
$tablestart .= $::title{$c}; $tablestart .= $::title{$c};
} }
...@@ -636,6 +636,7 @@ print " ...@@ -636,6 +636,7 @@ print "
if (defined $::FORM{'debug'}) { if (defined $::FORM{'debug'}) {
print "<PRE>$query</PRE>\n"; print "<PRE>$query</PRE>\n";
print "::FORM{'order'} is <pre>$::FORM{'order'}</pre>\n";
} }
if ($toolong) { if ($toolong) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment