SortKey

Returns or sets a value that determines how the ListItem objects in a ListView control are sorted.

The parts of the SortKey property syntax are described in the following table.

Part Description
object An object expression that evaluates to a ListView control.
integer An integer specifying the sort Key, as described in Settings.

Settings

The SortKey property settings are described in the following table.

Setting Description
0 Sort using the ListItem object's Text property.
> 1 Sort using the subitem whose collection Index is specified here.

Remarks

The Sorted property must be set to True before the change takes place.