Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Keep Folders on Top in Mac Finder: Sorting

· 5 min read · Home Tech

In this article
  1. What "Keep Folders on Top" Actually Does
  2. How to Enable or Disable It
  3. Why It's On by Default
  4. Common Problems and Fixes
  5. Alternatives: Using Smart Folders and Tags
  6. How It Compares to Windows Explorer
  7. Frequently Asked Questions

Yes, you can keep folders on top when sorting by name in Mac Finder. This is controlled by a setting called "Keep folders on top," which is enabled by default in macOS. When active, folders are listed before files regardless of the sort order, so sorting by name will show folders alphabetically first, followed by files alphabetically.

What "Keep Folders on Top" Actually Does

The Finder's "Keep folders on top" option changes how items are arranged in a window. When enabled, all folders are grouped together at the top of the list, and files appear below them. This applies to all sort methods—name, date, size, kind, and so on. So if you sort by name, folders are sorted alphabetically among themselves, and files are sorted alphabetically among themselves, but folders always come first.

If you disable this option, folders and files are mixed together and sorted as one combined list. For example, with "Keep folders on top" off and sorting by name, a file named "Aardvark.txt" would appear before a folder named "Zebra" because "A" comes before "Z" alphabetically. With the option on, the "Zebra" folder would appear before the "Aardvark" file.

How to Enable or Disable It

The setting is per-folder, meaning each Finder window can have its own preference. Here's how to change it:

  1. Open a Finder window and navigate to the folder you want to adjust.
  2. Click on "View" in the menu bar at the top of the screen.
  3. Select "Show View Options" (or press Command+J).
  4. In the panel that appears, look for the "Sort By" dropdown. Next to it, you'll see a checkbox labeled "Keep folders on top."
  5. Check or uncheck the box as desired.
  6. If you want this setting to apply to all folders, click "Use as Defaults" at the bottom of the View Options panel.

Note that the "Keep folders on top" checkbox only appears when the view is set to "as List" or "as Columns." In Icon view or Gallery view, this option is not available because those views don't use a linear sort order.

Why It's On by Default

Apple enabled "Keep folders on top" by default to make navigation more intuitive. Folders are containers, and users typically want to see them first to find subdirectories or organize files. This behavior matches many other file managers, like Windows Explorer, which also has a similar option. The default is a deliberate design choice to reduce clutter and make file access faster.

Common Problems and Fixes

Sometimes the setting seems to not work. Here are a few things to check:

  • View mode: As mentioned, the option is only available in List or Column view. If you're in Icon view, you won't see the checkbox, and folders won't be kept on top.
  • Per-folder setting: The setting is not global unless you click "Use as Defaults." You may have changed it for one folder but not another.
  • Sort by "None": If you set "Sort By" to "None," the "Keep folders on top" option may be grayed out or ignored. Choose a specific sort criterion like Name or Date Modified.
  • macOS updates: After a major macOS update, some settings may reset. Check the View Options again if the behavior changes.

Alternatives: Using Smart Folders and Tags

If you want more control over folder organization, consider using Smart Folders. These are saved searches that automatically group files based on criteria like file type, date, or keyword. You can create a Smart Folder that shows only folders, or only files, bypassing the need to manually sort. Tags are another way to visually separate items—assign a color tag to folders and sort by tag to bring them to the top.

How It Compares to Windows Explorer

Windows Explorer has a similar feature called "Group by" and a folder option in the folder options dialog. In Windows, you can set "Show all folders" or "Group by" to achieve a similar effect, but the default behavior is actually to mix folders and files. macOS's default is more user-friendly for many people, but Windows gives you more granular control over grouping. Both systems allow you to sort by name, but the "folders on top" behavior is a key difference.

Frequently Asked Questions

Why is "Keep folders on top" grayed out?

This happens when the Finder view is set to Icon view or Gallery view. Switch to List view (View > as List) or Column view (View > as Columns) to enable the checkbox.

Does "Keep folders on top" affect search results in Finder?

No, it only affects the display of items within a specific folder window. Search results (Spotlight or Finder search) have their own sorting options, and folders are not automatically kept on top there.

Can I set "Keep folders on top" for all folders at once?

Yes. After setting the option in any folder's View Options, click "Use as Defaults" at the bottom of the panel. This applies the current settings to all folders that don't have custom settings.

Does this setting work in macOS Ventura or Sonoma?

Yes, the option has been available for many years and remains in current macOS versions. The steps are the same for recent releases.

What if I want folders on top but files sorted by date?

You can set "Sort By" to "Date Modified" and keep "Keep folders on top" checked. Folders will be sorted by date among themselves, and files will be sorted by date among themselves, with folders always appearing first.

Is there a keyboard shortcut to toggle this?

No, there is no built-in keyboard shortcut. You have to use the View Options panel (Command+J) to change it.