MCPcopy Create free account
hub / github.com/idank/explainshell / resort

Function resort

explainshell/web/static/js/d3.v3.js:5113–5117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5111 if (sortChords) resort();
5112 }
5113 function resort() {
5114 chords.sort(function(a, b) {
5115 return sortChords((a.source.value + a.target.value) / 2, (b.source.value + b.target.value) / 2);
5116 });
5117 }
5118 chord.matrix = function(x) {
5119 if (!arguments.length) return matrix;
5120 n = (matrix = x) && matrix.length;

Callers 2

relayoutFunction · 0.85
d3.v3.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected