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)
| Parameter | Description |
| eSorted | Sort 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 | &H0000 | Unsorted. The items appear in the order they were entered. |
| hbSortText | &H0001 | Sort on element text, case insensitive. |
| hbSortBinary | &H0002 | Sort on element text, case sensitive. |
| hbSortItemData | &H0003 | Sort on the value associated with each element. |
| hbSortUser | &H0004 | Sort 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
| System | Minimal version | Remarks |
| Palm OS | Palm OS 3.0 | N/A |