How do you sort files in OS X Finder so folders appear at the top? There doesn't seem to be any option in View Options.
As @JRobert explained, there is no way to do this without third-party software.
When I switched to Mac OS X from Windows, this seemed bothersome to me as well, but after using it for a while, I don't mind it. I have adapted my workflow to use Finder in Column View and it shows which items are folders using a small triangle to the right of the item name. You can navigate by typing the first part of a file name and moving up, down, left, and right. I actually find this faster and easier to visually identify folders now.
Column View can be activated by clicking on the third button in the Finder's toolbar:
There is a very hacky way to sort Folders first if you don't mind sorting by Kind.
The easiest way is to simply use a Finder replacement, as mentioned above.
In Mavericks, selecting
Arrange by ->
Kind either by right-clicking in a folder, or under the
View menu, will group that Finder window's files according to their
Kind attribute. While this doesn't place
Folders right at the top, it does group them all together. In List view, I've been able to get them grouped at the top by tagging all the folders with a
Blue tag, and then sorting on
Tags. This puts the folders at the top, without changing their names.
The way I do it, which is still a little annoying, is to select all files and then click on the top one and drag the cursor to the top of the folder box.
There's a spot where it will start scrolling up. not at light speed, but quickly enough. When you're all at the top, click View in the top tool bar and click Clean Up.
I had found an indirect way to work around it with almost exact correct output, with files sorted alphabetically.
I used the Automator, check it: http://www.quora.com/OS-X/How-can-I-make-folders-always-on-top-on-Mac-Finder-WITHOUT-arrange-by-kind/
if making folders on top is most important. you will need to label the files also, making sure that files label alphabetically comes after folders label.
I didn't do that because labeling every thing makes them looks ugly.
This has finally been fixed for anyone using macOS Sierra. Apple has added a Finder Preference to do this without having to install any third-party software.
- Open the Finder
- Open "Preferences..." under the Finder dropdown
- Select the Advanced tab
- Check the box for "Keep folders on top when sorting by name"
Profit and enjoy.
I've put together a snippet that does this a la terminal. Like others have mentioned it uses the " Folder" trick to sort folders above files and works in list view only.
Unfortunately files are sorted by kind first then alphabetically. Check the location of bootstrap.sh in the included screenshot for example.