Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/facebook/react
/ compare
Function
compare
packages/scheduler/src/SchedulerMinHeap.js:91–95 ·
view source on GitHub ↗
(a: Node, b: Node)
Source
from the content-addressed store, hash-verified
89
}
90
91
function
compare(a: Node, b: Node) {
92
// Compare sort index first, then task id.
93
const
diff = a.sortIndex - b.sortIndex;
94
return
diff !== 0 ? diff : a.id - b.id;
95
}
Callers
4
siftUp
Function · 0.85
siftDown
Function · 0.85
binSearch
Function · 0.85
updateMemoComponent
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected