Commit d747ca150b3f2849f067498261864a59b5484960

Authored by Marcos Ramos
1 parent 657be12f

features_admin: Sort features list alphabetically on admin control panel.

(ActionItem2910)

Signed-off-by: Marcos Ramos <ms.ramos@outlook.com>
Signed-off-by: Rafael de Souza Queiroz <querafael@live.com>
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/controllers/admin/features_controller.rb
@@ -2,7 +2,7 @@ class FeaturesController &lt; AdminController @@ -2,7 +2,7 @@ class FeaturesController &lt; AdminController
2 protect 'edit_environment_features', :environment 2 protect 'edit_environment_features', :environment
3 3
4 def index 4 def index
5 - @features = Environment.available_features 5 + @features = Environment.available_features.sort_by{|k,v|v}
6 end 6 end
7 7
8 post_only :update 8 post_only :update