]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 774625 - describecomponents.cgi - product category listing is not sorted
authorMarkus Kolb <mozilla.org@tower-net.de>
Thu, 26 Jul 2012 20:43:30 +0000 (16:43 -0400)
committerDave Lawrence <dlawrence@mozilla.com>
Thu, 26 Jul 2012 20:43:30 +0000 (16:43 -0400)
r=dkl, a=LpSolit

Bugzilla/User.pm

index 391e416af382ddf0369a51bc30ecfd6467b1927f..f8c490b1a7ee42028acfed06f8e2e1fd11162df3 100644 (file)
@@ -1069,7 +1069,7 @@ sub get_accessible_products {
                        @{$self->get_selectable_products},
                        @{$self->get_enterable_products};
     
-    return [ values %products ];
+    return [ sort { $a->name cmp $b->name } values %products ];
 }
 
 sub check_can_admin_product {