Commit 10ab44f4c10f85f916a65ac92fdf5fb4dccf7d3f

Authored by Braulio Bhavamitra
1 parent 27ef9853

Sort theme listing

app/controllers/my_profile/themes_controller.rb
... ... @@ -14,7 +14,7 @@ class ThemesController < MyProfileController
14 14 end
15 15  
16 16 def index
17   - @themes = (profile.environment.themes + Theme.approved_themes(profile)).uniq_by{ |t| t.id }
  17 + @themes = (profile.environment.themes + Theme.approved_themes(profile)).uniq_by{ |t| t.id }.sort_by{ |t| t.name }
18 18 @current_theme = profile.theme
19 19  
20 20 @layout_templates = LayoutTemplate.all
... ...