]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5007 Sort languages by label (instead of id) in Coding Rules filter
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Fri, 4 Jul 2014 13:45:32 +0000 (15:45 +0200)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Fri, 4 Jul 2014 13:45:54 +0000 (15:45 +0200)
sonar-server/src/main/coffee/coding-rules/views/filters/language-filter-view.coffee

index 96a07561137d6160969f078a9e8e93a400351db1..b52dcb2bbbb3d201d27d2cd90ba97fdb6091a016 100644 (file)
@@ -15,6 +15,8 @@ define [
 
     initialize: ->
       super
+      @choices.comparator = 'text'
+      @choices.sort()
       @app = @model.get 'app'
       @listenTo @app.qualityProfileFilter, 'change:value', @onChangeProfile
       @selectedFromProfile = false