Skip to content

Commit c422f53

Browse files
committed
Use Lib.sorterAsc for zindices
1 parent 85edbdf commit c422f53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plots/cartesian/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ function plotOne(gd, plotinfo, cdSubplot, transitionOpts, makeOnCompleteCallback
211211
// Plot each zindex group in ascending order
212212
var zindices = Object.keys(traceZindexGroups)
213213
.map(Number)
214-
.sort(function(a, b) { return a - b; });
214+
.sort(Lib.sorterAsc);
215215
for(var z = 0; z < zindices.length; z++) {
216216
var zindex = zindices[z];
217217
// For each "module" (trace type)

0 commit comments

Comments
 (0)