method Items.Sort (ColIndex as Variant, Ascending as Boolean)
Sorts a column.

TypeDescription
ColIndex as Variant A long expression that indicates the column's index, or a string expression that indicates the column's caption or column's key.
Ascending as Boolean A boolean expression that indicates whether the items are sorted ascending or descending 

The Sort method uses the SortType property to determine the way how the items are ordered. Use the SortOrder property to sort a column and to display the sorting icon in the column's header. The Sort event is fired when the user sorts a column. The SortPosition property changes the position of the column in the control's sort bar. Use the DefaultSortOrder property to specify the column's default sort order, when the user first clicks the column's header. Use the ItemPosition property to change the item's position. Use the FirstVisibleItem and NextVisibleItem properties to enumerate the items as they are listed. The Sort method is not available if the control is running in the virtual mode.