You can sort compartment items in Function Point diagrams in ascending or descending alphabetical order to reduce the complexity or increase the level of abstraction in data diagrams. By default, compartment items are listed in the same order as they are in the Properties view and the Project Explorer.
To filter compartment items by name, visibility style, or return type in an ascending or descending alphabetical order:

Showing and hiding compartments
Resizing compartments in data diagrams
Collapsing compartments
Filtering compartment items
Sorting attributes