C# Function to Sort TreeView TreeNode, sort nodes with child nodes first (asc), then nodes without children (asc)
$10-30 USD
Em Andamento
Publicado há mais de 9 anos
$10-30 USD
Pago na entrega
I need a C# function that will take in a TreeNode of a TreeView and sort it. I want to to sort nodes with child nodes first (alphabetically) then sort the remaining nodes that do not have children, again alphabetically. When I do a [login to view URL]() it sorts all the nodes alphabetically, nodes that are expandable (have child nodes) do not come first; I want them to.
private void sort_node(TreeNode node)
{
//code
}
Thanks.