MCPcopy Index your code
hub / github.com/microsoft/SandDance / sort

Function sort

docs/app/js/sanddance-app.js:141317–141323  ·  view source on GitHub ↗
(values, index)

Source from the content-addressed store, hash-verified

141315 };
141316}
141317function sort(values, index) {
141318 values.sort.call(index, (a, b)=>{
141319 const x = values[a], y = values[b];
141320 return x < y ? -1 : x > y ? 1 : 0;
141321 });
141322 return (0, _d3Array.permute)(values, index);
141323}
141324function merge(base, value0, index0, n0, value1, index1, n1, value, index) {
141325 let i0 = 0, i1 = 0, i;
141326 for(i = 0; i0 < n0 && i1 < n1; ++i)if (value0[i0] < value1[i1]) {

Callers 1

insertFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected