Sorted Property (ListView Control)

       

Returns or sets a value that determines whether items in a collection are sorted.

Syntax

object.Sorted [= boolean]

The Sorted property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
boolean A Boolean expression specifying whether the objects are sorted, as described in Settings.

Settings

The settings for boolean are:

Setting Description
True The items are sorted alphabetically. For the ListView control, items are sorted according to the SortOrder property.
False The items are not sorted.

Remarks

For the ListView control, the Sorted property must be set 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 is set to False.