summaryrefslogtreecommitdiffstats
path: root/query.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-08-04 04:40:26 +0200
committerlpsolit%gmail.com <>2006-08-04 04:40:26 +0200
commit9444e963348c024b86d22402c91cfad9b0a41df7 (patch)
treec067f13b13d1d2e10edadb581f18161e47f1d839 /query.cgi
parentd58a16bb4dc379e34f048c1f47de8825952462b0 (diff)
downloadbugzilla-9444e963348c024b86d22402c91cfad9b0a41df7.tar.gz
bugzilla-9444e963348c024b86d22402c91cfad9b0a41df7.tar.xz
Bug 346588: Versions should be sorted using vers_cmp() - Patch by Olav Vitters <bugzilla-mozilla@bkor.dhs.org> r=mkanat a=myk
Diffstat (limited to 'query.cgi')
-rwxr-xr-xquery.cgi3
1 files changed, 2 insertions, 1 deletions
diff --git a/query.cgi b/query.cgi
index 57f965377..7b737d03f 100755
--- a/query.cgi
+++ b/query.cgi
@@ -38,6 +38,7 @@ use Bugzilla::Error;
use Bugzilla::Product;
use Bugzilla::Keyword;
use Bugzilla::Field;
+use Bugzilla::Install::Requirements;
my $cgi = Bugzilla->cgi;
my $dbh = Bugzilla->dbh;
@@ -211,7 +212,7 @@ foreach my $product (@selectable_products) {
}
my @components = sort(keys %components);
-my @versions = sort(keys %versions);
+my @versions = sort { vers_cmp (lc($a), lc($b)) } keys %versions;
my @milestones = sort(keys %milestones);
$vars->{'product'} = \@selectable_products;