John,
You have to set the Sorted property of the parent node. For example this will cause the first level of a treeview control sort itself:
treeview101a.otreeview.nodes(1).sorted = .t.
> How to sort treeview node after add a new node? I used to try
>
>
>WITH THISFORM.oletreeview.object.nodes
> loX = .add(,,,,,)
> loX.Sorted = .T.
>ENDWITH
>
>
>But it not work!!