MCPcopy Create free account
hub / github.com/microsoft/SandDance / compare

Function compare

docs/external/js/react.development.js:2319–2323  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

2317 }
2318
2319 function compare(a, b) {
2320 // Compare sort index first, then task id.
2321 var diff = a.sortIndex - b.sortIndex;
2322 return diff !== 0 ? diff : a.id - b.id;
2323 }
2324
2325 // TODO: Use symbols?
2326 var NoPriority = 0;

Callers 3

updateMemoComponentFunction · 0.70
siftUpFunction · 0.70
siftDownFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected