summaryrefslogtreecommitdiffstats
path: root/enter_bug.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'enter_bug.cgi')
-rwxr-xr-xenter_bug.cgi4
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.