Sort
Description
Sorts the entries in the choice list.
The pre-existing HookChoices object is stored in a variable called choices that is visible only within a CHOICE_LIST hook. In the syntax section of this method, choices is a variable name that must be typed literally; it is not a placeholder for an arbitrary name or expression. This is the only way to access a HookChoices object.
Syntax
VBScript
choices.Sort sortAscending
- Identifier
- Description
- choices
- A special HookChoices object.
- sortAscending
- An optional flag to indicate the sorting direction. The default value for this flag is true, which sorts the entries in ascending order. Specify False to sort the entries in descending order.
- Return value
- None.