Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/d3/d3-array
/ ascending
Function
ascending
src/ascending.js:1–3 ·
view source on GitHub ↗
(a, b)
Source
from the content-addressed store, hash-verified
1
export
default
function
ascending(a, b) {
2
return
a == null || b == null ? NaN : a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
3
}
Callers
9
groupSort-test.js
File · 0.90
ascendingBox
Function · 0.90
ascendingBoxValue
Function · 0.90
ascending-test.js
File · 0.90
rank-test.js
File · 0.85
bisector
Function · 0.85
greatest
Function · 0.85
least
Function · 0.85
groupSort
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…