Sorting compartment items by visibility
In UML visualization, you can sort compartment items in ascending or descending alphabetical order based on their visibility types.
You can sort compartment items by visibility only when a compartment has at least two items with public, protected, private, or package visibility styles.
To sort compartment items by visibility:
- In the diagram editor, right-click a shape; then click Filters > Sort/Filter Compartment Items.
- In the Sort/Filter Compartment Items window, click a compartment.
- In the table, click the Visibility column heading and click Apply.
- Click OK.
Parent topic
Filtering and sorting compartment items
Related concepts
Class shapes
Visibility
Related tasks
Filtering compartment items by visibility
Filtering compartment items by selection
Filtering compartment items by visibility and selection
Sorting compartment items by visibility while filtering by selection
Sorting compartment items by name
Sorting attributes by type
Sorting operations by return type