Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can the sorting nodes behavior be deactivated or overwritten? #32

Open
alexh225 opened this issue Oct 22, 2018 · 2 comments
Open

Can the sorting nodes behavior be deactivated or overwritten? #32

alexh225 opened this issue Oct 22, 2018 · 2 comments

Comments

@alexh225
Copy link

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

@David-Desmaisons
Copy link
Owner

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

@bruehldev
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants