Vue.D3.tree
Vue.D3.tree copied to clipboard
Can the sorting nodes behavior be deactivated or overwritten?
Hi David, by default the D3 tree seems to sort the nodes based on textlength(?). In some situations this behavior is not really usefull. Can it be deactivated or overwritten within configuration of the component?
Best regards Alex
Currently, the sorting is based on text value (that is alphabetical order) not textlength.
Delete .sort(function(t, e) { return (0, v.compareString)(t.data.text, e.data.text) }) in "index.js" or your own repo