How to Fix Incorrect Folder Sorting for Numbers 10 and Above on Mac
Question details
The user needs to correct the sorting order of numbered folders on Mac so that double-digit numbers like 10 appear after 9, instead of next to 1.

- Product
- Mac Finder / Document Cloud
- Device & OS
- Mac
- Scenario
- Organizing document or semester folders chronologically by number on a macOS device.
- Observed behavior
- Folders are sorted alphabetically rather than numerically, causing a folder named '10th semester' to appear next to '1' instead of after '9th semester'.
Take a quick look at your folder list to find the highest number you plan to use. If your highest folder is between 10 and 99, you will need a two-digit format; if it reaches 100 or more, you will need a three-digit format.
Rename Folders with Leading Zeros (Zero-Padding)
Add leading zeros to single-digit numbers so that all folder names contain the same number of digits, ensuring natural numerical sorting.
Many cloud storage platforms (like Document Cloud) and basic list views default to alphabetical sorting. Because the text character '1' comes before '2', any folder starting with '1' (including '10', '11', '100') will be listed before '2' unless the numbering format is unified with leading zeros.
Review your list of folders to determine the maximum number of digits required. For example, if you have up to 12 semesters or chapters, you need a two-digit numbering system (e.g., 01, 02).
Select the first folder (e.g., '1st Semester') in Finder or Document Cloud. Press the Return key on your Mac keyboard to make the text editable, and add a leading zero to change it to '01st Semester' or '01 - First Semester'.
Repeat the renaming process for folders 2 through 9 so they become '02', '03', up to '09'. Keep '10' and above exactly as they are.
Click the 'Name' column header in your file manager to sort the list alphabetically. The folders will now display in the correct numerical order from 01 to 10 and beyond. Refresh the window or reopen the app if changes do not appear immediately.

Manage and Organize Your Documents Efficiently with WPS Office
Keep your academic and professional documents perfectly organized. WPS Office for Mac offers an intuitive interface and built-in file management to easily rename, sort, and access your PDFs and office files.
- 1. Download and Install WPS Office: Get the WPS Office for Mac app from the official website and install it on your device.
- 2. Open the File Manager: Launch WPS Office and navigate to the 'Open' or 'WPS Cloud' tab on the left sidebar to view your document folders.
- 3. Rename Folders for Correct Sorting: Right-click on your folders and select 'Rename'. Add leading zeros (like '01', '02') to single-digit folders to ensure they match double-digit formats.
- 4. Sort by Name: Click on the 'Name' filter at the top of the file list to automatically arrange your numbered folders in perfect numerical sequence.

Frequently Asked Questions
Why does my Mac sort folder 10 before folder 2?
By default, Mac's Finder and many cloud storage systems sort files alphabetically by comparing the text character by character. Since the character '1' in '10' comes before '2' in the alphabet, the system places '10' before '2'.
Do I need to rename hundreds of files manually on Mac?
No. You can use Mac's built-in bulk rename feature. Select multiple files in Finder, right-click, choose 'Rename', and select the 'Format' option to automatically apply a unified name and custom index number sequence with leading zeros.
Will this leading-zero naming convention work on Google Drive or Windows?
Yes, using leading zeros (like 01, 02... 10) is a universally recognized best practice for file management. It guarantees your folders will sort correctly in alphabetical view across macOS, Windows, Google Drive, and other cloud services.




