feat(templating): minor sort fix

This commit is contained in:
Torkel Ödegaard 2016-04-28 18:26:41 +02:00
parent 5d652dcaef
commit 89ea25ca08

View File

@ -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) {