source:
node_modules/d3-hierarchy/src/hierarchy/sort.js
| Last change on this file was e4c61dd, checked in by , 6 months ago | |
|---|---|
|
|
| File size: 151 bytes | |
| Rev | Line | |
|---|---|---|
| [e4c61dd] | 1 | export default function(compare) { |
| 2 | return this.eachBefore(function(node) { | |
| 3 | if (node.children) { | |
| 4 | node.children.sort(compare); | |
| 5 | } | |
| 6 | }); | |
| 7 | } |
Note:
See TracBrowser
for help on using the repository browser.
