Views preferences in Files

You can change how files and folders are grouped and sorted by default. Press the menu button in the sidebar of the window and select Preferences.

General

Sort Folders Before Files

By default, the file manager does not show all folders before files. To see all folders listed before files, enable this option.

To change how files are sorted in folders, see Sort files and folders.