Vue.D3.tree icon indicating copy to clipboard operation
Vue.D3.tree copied to clipboard

Can the sorting nodes behavior be deactivated or overwritten?

Open alexh225 opened this issue 6 years ago • 2 comments

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

alexh225 avatar Oct 22 '18 15:10 alexh225

Currently, the sorting is based on text value (that is alphabetical order) not textlength.

David-Desmaisons avatar Aug 04 '19 03:08 David-Desmaisons

Delete .sort(function(t, e) { return (0, v.compareString)(t.data.text, e.data.text) }) in "index.js" or your own repo

bruehldev avatar Sep 08 '20 13:09 bruehldev