# Sorting elements in Java views

Members and Outline views can present members sorted or in the order of declaration in the compilation unit.

To sort members:

- Toggle on the Sort toolbar button in the Java view
- The sorting order can be configured on the on the Window > Preferences... > Java > Appearance > Members Sort Order page
- After the above sorting is performed, members in each group are sorted alphabetically

To present members in the order of declaration in the compilation unit.

- Toggle off the Sort toolbar button in the Java view

Java Toolbar actions