We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dd1333 commit 9c70ee9Copy full SHA for 9c70ee9
src/transforms/sort.js
@@ -78,18 +78,17 @@ exports.calcTransform = function(gd, trace, opts) {
78
79
var target = opts.target;
80
var len = targetArray.length;
81
-
82
var arrayAttrs = PlotSchema.findArrayAttributes(trace);
83
var d2c = Axes.getDataToCoordFunc(gd, trace, target, targetArray);
84
var indices = getIndices(opts, targetArray, d2c);
85
86
for(var i = 0; i < arrayAttrs.length; i++) {
87
var np = Lib.nestedProperty(trace, arrayAttrs[i]);
88
- var arrayCopy = np.get().slice();
+ var arrayOld = np.get();
89
var arrayNew = new Array(len);
90
91
for(var j = 0; j < len; j++) {
92
- arrayNew[j] = arrayCopy[indices[j]];
+ arrayNew[j] = arrayOld[indices[j]];
93
}
94
95
np.set(arrayNew);
0 commit comments