Fix OneDrive Browser Sorting Files Alphabetically Instead of Numerically
Question details
Users notice that files containing mixed letters and numbers are sorted alphabetically rather than numerically in the OneDrive web interface.

- Product
- Microsoft OneDrive
- Device & OS
- not provided
- Scenario
- Viewing and organizing mixed-character file names in the OneDrive web browser.
- Observed behavior
- Files are sorted in strict alphabetical order (e.g., File 1, File 10, File 100, File 2) instead of natural numerical order, contrasting with Windows File Explorer.
Verify if you are using OneDrive for Business or Personal, as this specific strict alphabetical sorting behavior is primarily a known limitation in the OneDrive for Business web interface.
Rename Files with Zero Padding
Since the OneDrive web interface sorts character by character, adding leading zeros forces alphabetical sorting to match numerical sorting.
This is the most reliable workaround for web-only users. By ensuring all numbers have the same amount of digits, strict alphabetical sorting algorithms will process them in the correct numerical sequence.
Hover over the file in your OneDrive web interface and click the three-dot menu (Show actions) next to the file name.
Click 'Rename' from the dropdown context menu.
Change single-digit numbers to include leading zeros based on your total file count. For example, change 'File 1' to 'File 001' and 'File 2' to 'File 002'. This ensures they are sorted correctly before 'File 010'.

Manage Files via Windows File Explorer
Windows File Explorer natively supports natural numerical sorting. Syncing your OneDrive allows you to view them in the correct order on your local PC.
Submit Feature Feedback to Microsoft
Providing official feedback helps Microsoft prioritize adding a natural sorting toggle in future OneDrive updates.
Try WPS Office for Seamless File Management and Editing
If you frequently encounter limitations with Microsoft Office services, consider switching to WPS Office. It provides a lightweight, highly compatible, and free alternative with intuitive built-in cloud storage for logical file management.
- 1. Download WPS Office: Visit the official WPS website and click the Free Download button.
- 2. Install the application: Run the downloaded setup file and follow the quick on-screen instructions to install the suite.
- 3. Access WPS Cloud: Launch WPS Office and sign in to instantly access 1GB of free cloud storage with optimized file management features.

Frequently Asked Questions
Why does File Explorer sort my OneDrive files differently than the web browser?
Windows File Explorer uses a natural sorting algorithm that recognizes numerical values within text strings. In contrast, the OneDrive web interface uses strict alphabetical (ASCII) sorting, evaluating characters one by one from left to right.
Is there a hidden setting to enable numerical sorting in OneDrive web?
No, there is currently no user setting or hidden toggle in OneDrive for Business on the web to switch between strict alphabetical sorting and natural numerical sorting.
Does this sorting issue affect OneDrive Personal as well?
This strict alphabetical sorting behavior is most frequently reported in OneDrive for Business, which runs on SharePoint infrastructure. OneDrive Personal may exhibit different sorting behaviors depending on regional updates and Microsoft rollouts.




