Commit bbd032c364aec8d381a5a41a9b613785760bc063

Authored by Thiago Ribeiro
1 parent 5a3b0752

Order categories in categories software block

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(
... ...