Sorting a Treeview?

The sorting in a TreeView does not work as expected.  When the sort
occurs, relationships between parent and child objects are lost, i.e.,
the ENTIRE list is sorted rather than the top level which is the
expected behavior.