Commit 1fc9cabd authored by Mathieu Giraud's avatar Mathieu Giraud

js/generic_axis.js: calls .sort() only once

parent ecc6cd31
......@@ -143,9 +143,10 @@ GenericAxis.prototype = {
},
sortValueMapping: function() {
var keys = Object.keys(this.value_mapping).sort()
var temp = {}
for (var key_pos in Object.keys(this.value_mapping).sort()){
key = Object.keys(this.value_mapping).sort()[key_pos]
for (var key_pos in keys){
key = keys[key_pos]
temp[key] = this.value_mapping[key]
}
this.value_mapping = temp
......
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