method Items.SortChildren (Item as HITEM, ColIndex as Variant, Ascending as Boolean)

Sorts the child items of the given parent item in the group.

TypeDescription
Item as HITEM A long expression that indicates the item's handle that is going to be sorted.
ColIndex as Variant A long expression that indicates the column's index or the cell's handle, a string expression that indicates the 
column's caption.
Ascending as Boolean A boolean expression that defines the sort order.

The SortChildren will not recurse through the tree, only the immediate children of item will be sorted. If your group looks like a simple list you can use the following line of code to sort ascending the list by first column: Group.Items.SortChildren 0, 0. To change the way how a column is sorted use SortType property of Column object. The SortChildren property doesn't display the sort icon on column's header.  The group automatically sorts the children items when user clicks on column's header. The SortOrder property sorts the items and displays the sorting icon in the column's header.