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.