Spaces:
Sleeping
Sleeping
File size: 375 Bytes
e7b2eb4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | import "selection";
d3_selectionPrototype.order = function() {
for (var j = -1, m = this.length; ++j < m;) {
for (var group = this[j], i = group.length - 1, next = group[i], node; --i >= 0;) {
if (node = group[i]) {
if (next && next !== node.nextSibling) next.parentNode.insertBefore(node, next);
next = node;
}
}
}
return this;
};
|