]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5074 Alphabetical order the list of issue filters
authorStas Vilchik <vilchiks@gmail.com>
Thu, 6 Mar 2014 08:45:58 +0000 (09:45 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Thu, 6 Mar 2014 08:45:58 +0000 (09:45 +0100)
sonar-server/src/main/webapp/javascripts/issues/extra.js

index 0585a66e367126021847370b59cc8e233800934b..2c5bdbd7e0c1d1e74291550432af5425ddd0f05d 100644 (file)
@@ -1132,7 +1132,9 @@ define(
 
         serializeData: function () {
           return _.extend({}, this.model.toJSON(), {
-            items: this.model.get('choices')
+            items: _.sortBy(this.model.get('choices'), function(item) {
+              return item.name.toLowerCase();
+            })
           });
         }
       });