Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

SORT-VARIABLE Sort list variable

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


0CMD0001No error
10SDP2000Warning: some elements could not be sorted

64SDP2001None of the elements could be sorted