MCPcopy Create free account
hub / github.com/plotly/plotly.js / sort

Function sort

stackgl_modules/index.js:31472–31483  ·  view source on GitHub ↗
(array)

Source from the content-addressed store, hash-verified

31470var CACHE = {}
31471
31472function sort(array) {
31473 var order = array.order
31474 var dtype = array.dtype
31475 var typeSig = [order, dtype ]
31476 var typeName = typeSig.join(":")
31477 var compiled = CACHE[typeName]
31478 if(!compiled) {
31479 CACHE[typeName] = compiled = compile(order, dtype)
31480 }
31481 compiled(array)
31482 return array
31483}
31484
31485module.exports = sort
31486

Callers

nothing calls this directly

Calls 1

compileFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…