MCPcopy
hub / github.com/microsoft/SandDance / sort

Function sort

docs/tests/v2/es6/js/sanddance.js:126069–126076  ·  view source on GitHub ↗
(values, index)

Source from the content-addressed store, hash-verified

126067}
126068
126069function sort(values, index) {
126070 values.sort.call(index, function (a, b) {
126071 var x = values[a],
126072 y = values[b];
126073 return x < y ? -1 : x > y ? 1 : 0;
126074 });
126075 return (0, _d3Array.permute)(values, index);
126076}
126077
126078function merge(base, value0, index0, n0, value1, index1, n1, value, index) {
126079 var i0 = 0,

Callers 2

pieFunction · 0.70
insertFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected