From 6a688141978ccd79300218f48cce9a42e1ad1a91 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 17 Jul 2006 06:22:32 +0000 Subject: Bug 277377: Classifications should support sort keys - Patch by Olav Vitters r=LpSolit a=justdave --- enter_bug.cgi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'enter_bug.cgi') 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. -- cgit v1.2.3-24-g4f1b