How to automatically sort by name in Xcode project

Bjarte picture Bjarte · Jul 21, 2015 · Viewed 8k times · Source

I like having my files sorted by name, but I don't seem to be able to find an option in Xcode to allow me to sort by name automatically in the project navigator (not the right click and sort by name)? This is very annoying when I have to hunt for my files and it's not A-Z and it creates the file at almost random position in the structure or if in any folder/group.

I'm using Xcode 6.4 (6E35b) and also have Xcode 7.0 beta 3 (7A152u).

Answer

Gaurav Parmar picture Gaurav Parmar · Jul 21, 2015

There is an option to sort by name by right-clicking on a folder in Xcode, and then tapping "Sort by Name." The caveat is that you have to do this for each directory.

enter image description here