I’m spoilt by other IDEs and used to see all my files in my project folder are sorted alphabetically. Xcode does not do that automatically. The newer files are located at the bottom of the folders by default. However, you can drag and drop to arrange them.
I accidentally found out that there is a “Sort” function in the “Edit” menu. Select the folder you want to sort and apply. It will list the files by name or by type based on your choice.
I guess the reason for Xcode not to sort files automatically is due to usability issue. As I am working on my project, some files are seldom opened and some files are edited constantly. It’s quite convenient to drag the more frequently used files onto the top.
Read More