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.
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: