I would like to know if there is any method to sort (A-Z) a specific node of a TreeView.
The node I want to order is the node "Node1 \ z"
To display it like this:
H N Y Z
Thank you
CodePudding user response:
Your question is how to apply an alpha sort (A-Z) to a specific single node in a TreeView
. I believe that your image is intended to depict child nodes of "z" that start as Z N Y H with the outcome that they are sorted H N Y Z without altering the rest of the TreeView
in any way.
There are many ways to do this and the comments mention some good ones. I'd like to offer an approach that iterates the TreeView
looking for a match for an arbitrary