● The function returns the status codestm_elements_without_name
when you attempt to apply this function to a list that contains unnamed elements.
● The function receives and returns a list of element IDs, not a list of element names.
Input/Output The list of Statemate elements to be sorted. This input lists consists of element IDs. To sort a list of items by name, 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_name (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.