diff options
-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) |