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

Function d3_selection_sortComparator

explainshell/web/static/js/d3.v3.js:937–942  ·  view source on GitHub ↗
(comparator)

Source from the content-addressed store, hash-verified

935 return this.order();
936 };
937 function d3_selection_sortComparator(comparator) {
938 if (!arguments.length) comparator = d3.ascending;
939 return function(a, b) {
940 return !a - !b || comparator(a.__data__, b.__data__);
941 };
942 }
943 function d3_noop() {}
944 d3_selectionPrototype.on = function(type, listener, capture) {
945 var n = arguments.length;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected