In Xcode 3, it was relatively easy to sort the source tree by name (see answer here for more details). However, I can't figure out how to sort the files and groups in Xcode 4 without manually dragging them around.
At the left and right of the project window, as you surely know, are the Navigator pane and the Inspectors pane, respectively.
The Project navigator displays your project's files and lets you open, add, delete, and rearrange those files. To open the Project navigator, at the top of your project window's navigator area, click the icon that resembles a file folder.
In xcode on left pane in the project navigator at the bottom there is a search field. In the documentation it is called filter bar. According to Inder Kumar Rathore the shortcut is ⌘ + ⇧ + O .
As of Xcode 4.3.1 - Select a Folder/Group in the project navigator area. Then go to Edit->Sort and you can choose "by name" or "by type."
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With