Home > Language Reference > Classes > ChoiceControl

Sorted Property

List elements sort criteria.

Syntax

Public Property Get Sorted() As HbSort
Public Property Let Sorted(ByVal eSorted As HbSort)

ParameterDescription
eSortedSort criteria.

Remarks

The Sorted property sorts the items in the list displayed by the control. The eSorted parameter specifies the sort criteria to use and can be one of the following values :

Constant Value Description
hbSortNone&H0000Unsorted. The items appear in the order they were entered.
hbSortText &H0001Sort on element text, case insensitive.
hbSortBinary&H0002Sort on element text, case sensitive.
hbSortItemData &H0003Sort on the value associated with each element.
hbSortUser&H0004Sort using a comparison function defined by the programmer.

The sort is in always ascending order. It is not possible to sort in descending order.

When the hbSortUser option is specified, the control sends a SortItems event to the form each time two elements are compared. Refer to the documentation of this event for more information.

System requirements

SystemMinimal versionRemarks
Palm OSPalm OS 3.0N/A