You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Sort/Arrange All Files In Every Folder By Name

How do I force all of my existing folder on my Mac to sort by name?

MacBook Pro (Retina, 15-inch, Mid 2015), macOS Sierra (10.12.4)

Posted on Apr 30, 2017 1:41 PM

Reply
Question marked as Top-ranking reply

Posted on Apr 30, 2017 5:07 PM

Filip, under the view menu in the finder choose "Show View Options" select arrange by option and sort by option. There is a button at the very bottom of the window "Use as Defaults" click that. This should do what you want.

19 replies

May 3, 2017 8:49 AM in response to Luis Sequeira1

I finally figured out to how to solve this thanks to everyone in this thread.

GUIDE:

Follow these instructions by Paul Conaway:

Filip, under the view menu in the finder choose "Show View Options" select arrange by option and sort by option. There is a button at the very bottom of the window "Use as Defaults" click that. This should do what you want.



Then, follow these instructions by dialabrain:

Chances are you've opened some Finder windows in the past. Individual folder options will override this default setting that we just set.



In order reset your folder settings across the entire machine we have to delete all .DS_Store files. This will ensure that all folders start fresh. Open up the Terminal application (Applications/Utilities/Terminal), and type:



sudo find / -name .DS_Store -delete; killall Finder



You will then be prompted for your password. You won't see your password as you type, so type carefully. This may take a minute or two because it's going to search your entire computer for .DS_Store files.



Done!



Note:

In the future, whenever you switch views, it will automatically save in the new .DS_Store file. This will override the default settings.

May 3, 2017 8:59 AM in response to FilipAAOfficial

FilipAAOfficial wrote:


Thank you, but unfortunately I'm unable to enter the command. I just receive an error message.

Please have a look at the attached screenshot below. ⬇️


User uploaded file

Judging from your screenshot, I wouldn't say the command failed.

There should be hundreds, or perhaps thousands of .DS_Store files.

If you got two errors only then probably the others were successfully deleted.

Apr 30, 2017 4:27 PM in response to FilipAAOfficial

I think the information for each folder would be stored in the invisible .DS_Store file inside each folder. I have no clue about what format that file is in, or the exact information it contains.


If you do not use other file views, the View for each previously-opened folder should stay in List view, alpha-by-name descending order. Two clicks for each NEW folder you open does not seem too onerous to me. Consider the possibility that you are being obsessive-compulsive about setting them all this way.

May 1, 2017 3:05 AM in response to Grant Bennet-Alder

The reason why this is important is because I’ve a folder containing 400+ folders with family photos inside of them. I recently transfered this folder from my old PC to my Mac and now everything is a mess. It would take me forever to fix this and I need a quicker way. Photos are literally laying on top of each other. Also, I would really appreciate if you didn’t diagnose other people in this community. You gotta understand that OCD is a very serious disorder that affect many peoples lives very negatively. You don’t just go around diagnosing people like that. Please get out of this thread since I and everybody else here has lost their respect for you.

Sort/Arrange All Files In Every Folder By Name

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.