How do I sort a TreeView

I am trying to sort the information on a TreeView. I tried using the
SortType, but it was of no use. Do I have to do it manually when I insert
it?

Thanks

Sorry to put this in the database section, but I am unable to access the vcl
newsgroup.