Sorted Property

Specifies whether the items in the list portion of a control, or list items in the ListView control, are alphabetically sorted. Read-only at run-time.

object.Sorted = [boolean]

Where object is an object expression that evaluates to one of the controls in the Applies To list, and boolean is a boolean expression that evaluates to either True or False, as described in Settings.

Use

When this property is True, Newlook performs all necessary processing to maintain the list in alphabetic order. This includes re-indexing all items in the list array so that their index corresponds with their position in the list.

Note!

If a control's List property contains a value and descriptor string (for example, 316=Anna;204=Beth;112=Cathy) then the list will be sorted by the value of each item. Therefore in the example "112=Cathy" will appear first in the list followed by "204=Beth" then "316=Anna".

Settings

The Sorted settings for the combo box, list box and list view controls are :

Setting

Description

True

Items will be sorted alphabetically.

False

(Default) Items will not be sorted alphabetically.

See Also

ItemData property | List property (ComboBox) | List property (ListBox) | ListCount property | ListIndex property | NewIndex property | SortKey property | SortOrder property

Applies To

Combo box control

List box control

List view control