In macOS, the Finder app displays files and folders together based on various criteria, often mixing them in a way that makes navigation less efficient. For users accustomed to other operating systems like Windows or Linux, where folders are typically listed before files, this can be frustrating.
macOS provides an option within the Finder settings that keeps folders at the top of the list in alphabetical order, with files sorted after them. The option changes only how items are listed, so nothing moves on disk.
The option applies across Finder windows, but only when a window is sorted by name. Under another sort order such as Date Modified, folders and files stay mixed.
Steps to show folders first in macOS Finder:
- Open the Finder app on your macOS device.
- Go to the Finder menu and select Preferences.

- In the Preferences window, click on the Advanced tab.
- Check the box next to Keep folders on top when sorting by name.
- Finder will now lists folders before files.