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

Function selection_order

external/.d3.js:1994–2006  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1992}
1993
1994function selection_order() {
1995
1996 for (var groups = this._groups, j = -1, m = groups.length; ++j < m;) {
1997 for (var group = groups[j], i = group.length - 1, next = group[i], node; --i >= 0;) {
1998 if (node = group[i]) {
1999 if (next && node.compareDocumentPosition(next) ^ 4) next.parentNode.insertBefore(node, next);
2000 next = node;
2001 }
2002 }
2003 }
2004
2005 return this;
2006}
2007
2008function selection_sort(compare) {
2009 if (!compare) compare = ascending$2;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected