Skip to content

Keep folders on top

Keep folders on top when sorting by name

  • Tested on macOS:
    • Sonoma
    • Ventura
    • Monterey
    • Big Sur
  • Parameter type: bool

Set to true

Keep folders on top

bash
defaults write com.apple.finder "_FXSortFoldersFirst" -bool "true" && killall Finder

Example output with value set to true

Set to false (default value)

Do not keep folders on top

bash
defaults write com.apple.finder "_FXSortFoldersFirst" -bool "false" && killall Finder

Example output with value set to false

Read current value

bash
defaults read com.apple.finder "_FXSortFoldersFirst"

Reset to default value

bash
defaults delete com.apple.finder "_FXSortFoldersFirst" && killall Finder