Commit 89ea25ca by Torkel Ödegaard

feat(templating): minor sort fix

parent 5d652dca
......@@ -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) {
......
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