Commit 03d098783b02e831901e9d2779d4548767d25cfc
1 parent
308c7fb6
Exists in
stable-4.x
Order categories in categories software block
(cherry picked from commit bbd032c364aec8d381a5a41a9b613785760bc063)
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/noosfero-spb/software_communities/lib/categories_software_block.rb
@@ -21,7 +21,7 @@ class CategoriesSoftwareBlock < Block | @@ -21,7 +21,7 @@ class CategoriesSoftwareBlock < Block | ||
21 | 21 | ||
22 | software_category = environment.categories.find_by_name("Software") | 22 | software_category = environment.categories.find_by_name("Software") |
23 | categories = [] | 23 | categories = [] |
24 | - categories = software_category.children.sort if software_category | 24 | + categories = software_category.children.order(:name).all if software_category |
25 | 25 | ||
26 | lambda do |object| | 26 | lambda do |object| |
27 | render( | 27 | render( |