Utility Functions : List of Utility Functions : stm_list_sort_by_branches

stm_list_sort_by_branches

Function type: LIST OF ELEMENT

Description
Sorts the specified list of hierarchical Statemate elements by branches.
Note the following:

This function is relevant only for a list of hierarchical elements. If the function is applied to a list of non-hierarchical elements, status receives the value stm_elements_not_hierarchical.

The order in which branches appear in the output is arbitrary. However, the order of states appearing within each branch are ordered from top to bottom.

Syntax
stm_list_sort_by_branches (list, status)
Arguments
 
Status Codes