@graphty/graphty-element / extend / compareNodeIds
Function: compareNodeIds() ​
compareNodeIds(
a,b):number
Defined in: graphty-element/src/simple/view.ts:41
The order every graph view iterates in: numbers ascending, then strings in code-unit order. Published so an order-dependent method that graduates to the advanced tier can sort the same way.
Parameters ​
a ​
One id.
b ​
The other.
Returns ​
number
Negative, zero or positive.