Commit bbd032c364aec8d381a5a41a9b613785760bc063
1 parent
5a3b0752
Exists in
master
and in
3 other branches
Order categories in categories software block
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 | 21 | |
| 22 | 22 | software_category = environment.categories.find_by_name("Software") |
| 23 | 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 | 26 | lambda do |object| |
| 27 | 27 | render( | ... | ... |