When Rational Statemate uses this function to sort a specified list of elements by levels and it encounters two or more charts at the same level of hierarchy, it sorts them alphabetically by name.
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 valuestm_elements_not_hierarchical
.
Input/Output The list of Rational Statemate box elements. The set of elements, {S1,S2
}, comprise a level. If you perform asort_by_level
function on statechartS
, the sorted order would be:S
,S1
,S2
,S11
.The order of elements within the same level appear in an arbitrary order in the output. For example,S2
might appear beforeS1
because they are of the same level. However, the order of levels is top-to-bottom.