Sort Finder folders on top

defaults write com.apple.finder _FXSortFoldersFirst -bool true