Commit 0c88a87b authored by Thonier Florian's avatar Thonier Florian Committed by Mikaël Salson

numericalAxis : minor modifiaction; move sort call out of the loop

parent 0ae5edaa
Pipeline #10949 passed with stages
in 4 minutes and 53 seconds
......@@ -297,8 +297,9 @@ FloatAxis.prototype = Object.create(NumericalAxis.prototype);
}
}
var temp = {}
for (var key_pos in Object.keys(this.value_mapping).sort()){
key = Object.keys(this.value_mapping).sort()[key_pos]
var sorted_keys = Object.keys(this.value_mapping).sort()
for (var key_pos in sorted_keys){
key = sorted_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