summaryrefslogtreecommitdiffstats
path: root/Bugzilla/User.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/User.pm')
-rw-r--r--Bugzilla/User.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm
index 67ada8e29..a5a502446 100644
--- a/Bugzilla/User.pm
+++ b/Bugzilla/User.pm
@@ -557,7 +557,8 @@ sub get_selectable_classifications {
$class->{$product->classification_id} ||=
new Bugzilla::Classification($product->classification_id);
}
- my @sorted_class = sort {lc($a->name) cmp lc($b->name)} (values %$class);
+ my @sorted_class = sort {$a->sortkey <=> $b->sortkey
+ || lc($a->name) cmp lc($b->name)} (values %$class);
$self->{selectable_classifications} = \@sorted_class;
return $self->{selectable_classifications};
}