Utility Functions : List of Utility Functions : stm_list_sort

stm_list_sort

Function type: LIST OF STRING

Description
Alphabetically sorts the specified list of strings.
Syntax
stm_list_sort (list, status)
Arguments
 
Status Codes
Example
Assume you generated a list of attributes for the state WAIT using single-element functions. This list is assigned to the variable attr_list. To sort the list items and write them to your document, use the following statements:

VARIABLE
STRING item;
LIST OF STRING attr_list, ord_attr_list;
INTEGER status;
.
.
WRITE (’\n WAIT’s attributes are:’);
ord_attr_list := stm_list_sort (attr_list, status);
FOR item IN ord_attr_list LOOP
WRITE (’\n ’, item);
END LOOP;