Commit 89ea25ca by Torkel Ödegaard

feat(templating): minor sort fix

parent 5d652dca
...@@ -288,9 +288,7 @@ function (angular, _, kbn) { ...@@ -288,9 +288,7 @@ function (angular, _, kbn) {
options[value] = {text: text, value: value}; options[value] = {text: text, value: value};
} }
return _.map(_.keys(options).sort(), function(key) { return _.sortBy(options, 'text');
return options[key];
});
}; };
this.addAllOption = function(variable) { this.addAllOption = function(variable) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment