Browse Source

feat(templating): minor sort fix

Torkel Ödegaard 9 years ago
parent
commit
89ea25ca08
1 changed files with 1 additions and 3 deletions
  1. 1 3
      public/app/features/templating/templateValuesSrv.js

+ 1 - 3
public/app/features/templating/templateValuesSrv.js

@@ -288,9 +288,7 @@ function (angular, _, kbn) {
         options[value] = {text: text, value: value};
       }
 
-      return _.map(_.keys(options).sort(), function(key) {
-        return options[key];
-      });
+      return _.sortBy(options, 'text');
     };
 
     this.addAllOption = function(variable) {