How to Keep Folders on Top When Sorting by Name in Mac OS Finder – Lozi-Tech

How to Keep Folders on Top When Sorting by Name in Mac OS Finder

By default, if you sort a directory by name in the Mac OS Finder, you will find that both files and folders are arranged alongside one another based upon an alphabetical sorting of their names. This is great for many users, but if you have a large folder with many subfolders and files, it can make locating folders and differentiating between files and folders a little more challenging. A great solution to this is to use a little-known Finder feature that keeps folders on top of a name sorted directory list.

How to Keep Folders on Top When Sorting by Name in Mac OS Finder

By default, if you sort a directory by name in the Mac OS Finder, you will find that both files and folders are arranged alongside one another based upon an alphabetical sorting of their names. This is great for many users, but if you have a large folder with many subfolders and files, it can make locating folders and differentiating between files and folders a little more challenging. A great solution to this is to use a little-known Finder feature that keeps folders on top of a name sorted directory list.

Maintaining folders at the top of a directory is a commonly used feature in the Windows PC world, but it’s just as useful on the Mac. Once you have enabled the setting, folders will appear first in any directory sorted by name, regardless of how that folder is viewed; list, icon, column, or cover flow.


To be able to sort by name while keeping folders on the top, you will need a modern version of Mac OS system software, Sierra 10.12.x or later will have the capability while older versions do not.

How to Keep Folders on Top When Sorting by Name in Mac OS Finder

This is an easy setting to enable, but it’s often overlooked or not even know at all. Here’s where to find the Keep Folders On Top setting:

    Go to the Finder of Mac OS

    How to Keep Folders on Top When Sorting by Name in Mac OS Finder

    Pull down the “Finder” menu and choose “Preferences” Click the “Advanced” tab and check the box next to “Keep folders on top when sorting by name”

    How to Keep Folders on Top When Sorting by Name in Mac OS Finder

    Close Finder Preferences

Now from the Finder you can choose to sort any directory by name, and you will see all folders in that directory will always be located on top. It doesn’t matter how the directory is viewed, folders will appear on top as long as the sorting is by name.

How to Keep Folders on Top When Sorting by Name in Mac OS Finder

Compare how the above screenshot looks, with folders on top, versus below, where folders are scattered throughout with the file listings in a standard alphabetical name sorting arrangement of Finder:

How to Keep Folders on Top When Sorting by Name in Mac OS Finder

The setting is limited to the “Name” sorting option, and unfortunately does not currently work when using sorting files by date, kind, size, tags, comments, or the other available Finder sorting choices.

With that said, there are other options for grouping folders together within Finder as well. A different but equally useful feature is sorting by “Kind” in the Finder, which will also group folders together in any view of a directory contents, as well as grouping other documents and files by their file type/kind as well. However, when sorting by “Kind” the folders will not appear on top of a directory list, though they will appear grouped together.

By the way, if you’ve never visited the Finder Preferences before, another great feature to enable is Show File Extensions in the Mac Finder, which makes the suffix of a file appear if applicable (like .jpeg, .txt, .doc, etc). There are many other settings adjustments to make in the Finder preferences as well, so tinker around and explore the various options.

If you enjoyed this trick, you’d almost certainly appreciate this collection of 9 simple tips to improve Finder in Mac OS.