Loading...
Select Version
The SORT-VARIABLE command sorts the elements of a list variable in ascending or descending order according to their content. Only list variables whose elements are simple variables of the same type (STRING, INTEGER, BOOLEAN or ANY) can be sorted.
SORT-VARIABLE |
VARIABLE-NAME = list-poss(2000): <composed-name 1..255> ,SORTING-ORDER = *ASCENDING / *DESCENDING |
Command return code
When an error occurs and only some of the commands have been processed and executed, the result of the command is not guaranteed.
(SC2) | SC1 | Maincode | Meaning/Guaranteed messages |
0 | CMD0001 | No error | |
1 | 0 | SDP2000 | Warning: some elements could not be sorted |
64 | SDP2001 | None of the elements could be sorted |