# Sorting in Java views

The 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 view toolbar.
- The sorting order can be configured on the on the Java > Appearance > Members Sort Order preference 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 view toolbar.

Java toolbar actions