mbouclas / loopback-ds-tree-mixin

Transform a loopback model into a tree using the Array of Ancestors pattern
MIT License
6 stars 4 forks source link

sorted child in tree #14

Closed Jcbobo closed 5 years ago

Jcbobo commented 7 years ago

In my application i need the child to be sorted (in the Front-end the tree is handled using nexted list) for make it i add a method for update a specific property of the node (called order) and update all the "followind" node (sort order is fixed and ASC). do you think that this can be a new feature for the library? if yes i can create a PR on a new branch for this feature (my solution need to be generalized and improved)