diff options
author | lpsolit%gmail.com <> | 2006-07-17 08:22:32 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-07-17 08:22:32 +0200 |
commit | 6a688141978ccd79300218f48cce9a42e1ad1a91 (patch) | |
tree | d36348c98eae0300a20ce80df04de331ce9cbba9 /enter_bug.cgi | |
parent | 324479e5c3f9fb77f85bfedee1e870f11076ee48 (diff) | |
download | bugzilla-6a688141978ccd79300218f48cce9a42e1ad1a91.tar.gz bugzilla-6a688141978ccd79300218f48cce9a42e1ad1a91.tar.xz |
Bug 277377: Classifications should support sort keys - Patch by Olav Vitters <bugzilla-mozilla@bkor.dhs.org> r=LpSolit a=justdave
Diffstat (limited to 'enter_bug.cgi')
-rwxr-xr-x | enter_bug.cgi | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi index 512650a7e..66f4109c7 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -79,7 +79,9 @@ if ($product_name eq '') { $class->{$product->classification_id} ||= new Bugzilla::Classification($product->classification_id); } - my @classifications = sort {lc($a->name) cmp lc($b->name)} (values %$class); + my @classifications = sort {$a->sortkey <=> $b->sortkey + || lc($a->name) cmp lc($b->name)} + (values %$class); # We know there is at least one classification available, # else we would have stopped earlier. |