Commit 10ab44f4c10f85f916a65ac92fdf5fb4dccf7d3f
1 parent
27ef9853
Exists in
master
and in
29 other branches
Sort theme listing
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/controllers/my_profile/themes_controller.rb
@@ -14,7 +14,7 @@ class ThemesController < MyProfileController | @@ -14,7 +14,7 @@ class ThemesController < MyProfileController | ||
14 | end | 14 | end |
15 | 15 | ||
16 | def index | 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 | @current_theme = profile.theme | 18 | @current_theme = profile.theme |
19 | 19 | ||
20 | @layout_templates = LayoutTemplate.all | 20 | @layout_templates = LayoutTemplate.all |