diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2012-03-27 15:01:44 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2012-03-27 15:02:57 +0200 |
commit | acabdefea734226650719e267477bb467e248452 (patch) | |
tree | 4d969a9d48709e876d96756ecebefe2546626370 | |
parent | 874a3fa1f98419e84a75737b4815e0d6c1898239 (diff) | |
download | sonarqube-acabdefea734226650719e267477bb467e248452.tar.gz sonarqube-acabdefea734226650719e267477bb467e248452.zip |
Case-insensitive sort of manual rules in administration console
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/models/rule.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/models/rule.rb b/sonar-server/src/main/webapp/WEB-INF/app/models/rule.rb index e1a75229ee2..c64a12f17bf 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/models/rule.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/models/rule.rb @@ -128,7 +128,8 @@ class Rule < ActiveRecord::Base end def self.manual_rules - Rule.find(:all, :conditions => ['enabled=? and plugin_name=?', true, MANUAL_REPOSITORY_KEY], :order => 'name') + rules = Rule.find(:all, :conditions => ['enabled=? and plugin_name=?', true, MANUAL_REPOSITORY_KEY]) + Api::Utils.insensitive_sort(rules) {|rule| rule.name} end def self.manual_rule(id) |