SortList()

Syntax

SortList(ListName(), Options [, Start, End])
Description
Sorts the specified list, according to the given options. The list may be of one of basic type: byte, word, long, integer, string or float. For structured list, use SortStructuredList().

Parameters

ListName() The list to sort.
Options It can be a combination of the following values:
  #PB_Sort_Ascending : Sort the list in ascending order (lower values first)
  #PB_Sort_Descending: Sort the list in descending order (higher values first)
  #PB_Sort_NoCase    : Sort the string list without case sensitive (a=A, b=B etc..)
Start, End (optional) The index of the first and last element in the list that should be sorted. If these parameters are not specified, then the whole list is sorted.
The first list element is at position 0, the next at 1 and so on.

Return value

None.

See Also

SortStructuredList(), RandomizeList()

Supported OS

All

<- SortArray() - Sort Index - SortStructuredArray() ->