From 9bfe1cb36e0edcb8fbca55e4871f19ca9cb4f91e Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Fri, 14 Dec 2012 18:12:15 +0100 Subject: [PATCH] Sort languages in Api::Utils.languages() --- sonar-server/src/main/webapp/WEB-INF/app/models/api/utils.rb | 2 +- .../src/main/webapp/WEB-INF/app/views/project/profile.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/models/api/utils.rb b/sonar-server/src/main/webapp/WEB-INF/app/models/api/utils.rb index 5a96b151aa3..99ffe32669c 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/models/api/utils.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/models/api/utils.rb @@ -168,7 +168,7 @@ class Api::Utils end def self.languages - java_facade.getLanguages() + java_facade.getLanguages().sort_by(&:getName) end def self.language(key) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/project/profile.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/project/profile.html.erb index ee18bc9e7df..f2cc72743ea 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/project/profile.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/project/profile.html.erb @@ -9,7 +9,7 @@ <% - Api::Utils.languages.sort_by { |l| l.getKey() }.each do |language| + Api::Utils.languages.each do |language| selected_profile=@project.profile(language.getKey(), false) %> -- 2.39.5