diff options
author | lpsolit%gmail.com <> | 2006-08-04 04:40:26 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-08-04 04:40:26 +0200 |
commit | 9444e963348c024b86d22402c91cfad9b0a41df7 (patch) | |
tree | c067f13b13d1d2e10edadb581f18161e47f1d839 /query.cgi | |
parent | d58a16bb4dc379e34f048c1f47de8825952462b0 (diff) | |
download | bugzilla-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-x | query.cgi | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |