diff --git a/sankey/sankey.js b/sankey/sankey.js index abe137b..ffc8be9 100644 --- a/sankey/sankey.js +++ b/sankey/sankey.js @@ -157,7 +157,7 @@ d3.sankey = function() { function computeNodeDepths(iterations) { var nodesByBreadth = d3.nest() .key(function(d) { return d.x; }) - .sortKeys(d3.ascending) + .sortKeys(function(a, b) { return a - b; }) .entries(nodes) .map(function(d) { return d.values; });