-
Notifications
You must be signed in to change notification settings - Fork 474
Closed
Description
Would it be possible to have a way to pull the tree of nodes but sort it by another column.
Sometimes I need to pull all the nodes into an array but also order it alphabetically by the node's name.
I know I can use the toTree method, but having it all in one collection would be easier since I wouldn't have to recursively iterate through the children.
So the result would look something like the following.
- A parent
- - A child
- - B Child
- - C child
- B Parent
- - F child
- - - A child
- - - B Child
- - G child
- M Parent
- - A child
- - N child
- - O Child
So it would still pull the child nodes after the parent, but the child nodes under that parent would be in alphabetical order. The parents would also be in alphabetical order.
Metadata
Metadata
Assignees
Labels
No labels