MCPcopy Create free account
hub / github.com/breck7/scroll / compareNode

Function compareNode

external/.d3.js:2011–2013  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

2009 if (!compare) compare = ascending$2;
2010
2011 function compareNode(a, b) {
2012 return a && b ? compare(a.__data__, b.__data__) : !a - !b;
2013 }
2014
2015 for (var groups = this._groups, m = groups.length, sortgroups = new Array(m), j = 0; j < m; ++j) {
2016 for (var group = groups[j], n = group.length, sortgroup = sortgroups[j] = new Array(n), node, i = 0; i < n; ++i) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected