Sorted (ListView)

This property returns and sets a value that determines whether the ListItem objects in a ListView control are sorted.

Syntax

object.Sorted [= Boolean]

Parameters

object
Object expression that evaluates to a ListView control.
Boolean
Boolean expression that specifies whether the ListItem objects are sorted.

Following are the Sorted property settings:

True
List items are sorted alphabetically, according to the SortOrder property.
False (default)
List items are not sorted.

Remarks

You must set the Sorted property to True for the settings in the SortOrder and SortKey properties to take effect.

Each time the coordinates of a ListItem change, the Sorted property becomes False.