- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 608
 
Closed
Labels
Description
According to the API documentation a sortChildren function exists which can be called to sort children based on a custom sorting function.
I would like to suggest to allow replacing the existing sorting function instead of calling the sortChildren function on demand. With the existing approach the API user has to know when to call sortChildren to preserve correct node order. With the possibility to insert a permanent sorting functionality like suggested above the API user is able to achieve a custom sorting without having to care for internal implementation details (knowing when to call sortChildren again).