In UML diagrams, for diagram
elements that have compartments, you can sort the compartment items
to reduce the complexity or increase the level of abstraction in the
diagram. In this context, sorting means putting the items in alphabetical
order.
About this task
In compartments, you can sort attributes or operations by
name, visibility style, or return type in ascending or descending
alphabetical order. You can also filter compartment items and sort
them at the same time.
To sort compartment items in a UML diagram:
Procedure
- In the diagram editor, right-click a diagram element; then
click .
- In the Sort/Filter Compartment Items window,
in the list on the left, select which compartment type to sort: Attribute or Operation.
- In the table on the right, click the appropriate column
heading once to display the contents in ascending order. Click the
column heading again to display the contents in descending order.
- Click Apply.
- Click OK.