diff options
author | lpsolit%gmail.com <> | 2006-08-04 02:40:26 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-08-04 02:40:26 +0000 |
commit | 9444e963348c024b86d22402c91cfad9b0a41df7 (patch) | |
tree | c067f13b13d1d2e10edadb581f18161e47f1d839 /query.cgi | |
parent | d58a16bb4dc379e34f048c1f47de8825952462b0 (diff) | |
download | bugs-9444e963348c024b86d22402c91cfad9b0a41df7.tar bugs-9444e963348c024b86d22402c91cfad9b0a41df7.tar.gz bugs-9444e963348c024b86d22402c91cfad9b0a41df7.tar.bz2 bugs-9444e963348c024b86d22402c91cfad9b0a41df7.tar.xz bugs-9444e963348c024b86d22402c91cfad9b0a41df7.zip |
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; |