Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
| Function: | CALL SORTC |
|---|---|
| Purpose: | To sort the values of its character arguments in ascending order. |
| Syntax: | CALL SORTN (<of> char-1 <, ... Char-n>) |
| Char-n is a character variable. If you use a variable list in the form Varl-Varn, precede the list with the word "of". | |
| Arguments to the CALL SORTC routine cannot be constants. You may use array references as arguments to this routine as well (see the following examples): |
For these examples, c1='bad', c2='good', c3=' ', a1='b', a2='B', a3='a', and a4='A'.