How to get Treeview to sort on demand

I need some help on sorting a treeview with a database attached to it.

I have some controls on the form so the user can choose how to sort the
tree (Asc/Des, on which field, and a button to activate the sort).

My problem is, how do I tell the tree to sort when the button is pressed.

I know I need to set SortType to stData and write on OnCompare event,
but cannot find a way to tell the tree to resort when the sort button is
pressed or when a node is moved.

Can anyone help me?

Thanks in advance.

Brian K. Bolster
cyp...@buffnet.net