MCPcopy Create free account
hub / github.com/reactjs/react-rails / compare

Function compare

lib/assets/react-source/development/react.js:3117–3121  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

3115 }
3116
3117 function compare(a, b) {
3118 // Compare sort index first, then task id.
3119 var diff = a.sortIndex - b.sortIndex;
3120 return diff !== 0 ? diff : a.id - b.id;
3121 }
3122
3123 // TODO: Use symbols?
3124 var NoPriority = 0;

Callers 3

siftUpFunction · 0.85
siftDownFunction · 0.85
updateMemoComponentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected