From 10ab44f4c10f85f916a65ac92fdf5fb4dccf7d3f Mon Sep 17 00:00:00 2001 From: Braulio Bhavamitra Date: Wed, 12 Feb 2014 14:34:18 -0300 Subject: [PATCH] Sort theme listing --- app/controllers/my_profile/themes_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/my_profile/themes_controller.rb b/app/controllers/my_profile/themes_controller.rb index 81b0f7c..d62a7ef 100644 --- a/app/controllers/my_profile/themes_controller.rb +++ b/app/controllers/my_profile/themes_controller.rb @@ -14,7 +14,7 @@ class ThemesController < MyProfileController end def index - @themes = (profile.environment.themes + Theme.approved_themes(profile)).uniq_by{ |t| t.id } + @themes = (profile.environment.themes + Theme.approved_themes(profile)).uniq_by{ |t| t.id }.sort_by{ |t| t.name } @current_theme = profile.theme @layout_templates = LayoutTemplate.all -- libgit2 0.21.2