● The function returns the status codestm_elements_without_name
when you attempt to apply this function to a list that contains unnamed elements.
Input/Outputstm_list LIST
OF ELEMENT
The list of Statemate elements to be sorted. This input lists consists of element IDs. To sort a list of items by synonym, use the following statements:stm_list st_list, sorted_st_list;
int status;
.
.
st_list = stm_r_st_name_of_st ("*", &status);
sorted_st_list = stm_list_sort_by_synonym (st_list,
&status);
.
.A list of all named states in an unspecified order is retrieved from the database, then the sort function orders the list alphabetically, according to the synonyms.