How to Fix OneNote Sections Sorting Incorrectly by House Number
Question details
Users need to sort OneNote sections numerically instead of alphabetically when they contain numerical values such as house numbers.

- Product
- Microsoft OneNote
- Device & OS
- iPad, iPhone, Windows
- Scenario
- Organizing and sorting notebook section names that contain numbers in the hundreds or tens.
- Observed behavior
- OneNote treats numbers as text during sorting, causing it to sort alphabetically. As a result, numbers starting with a smaller digit (like 29) appear before numbers starting with a larger digit (like 3).
Ensure your OneNote app is fully synced to OneDrive across all devices before making structural changes or renaming sections to avoid accidental data loss.
Add Leading Zeros to Section Names
Since OneNote uses alphanumeric sorting, padding shorter numbers with leading zeros forces the alphabetical sort to align with true numerical order.
OneNote treats all section titles as text strings. When it encounters numbers, it evaluates them digit by digit from left to right. By adding zeros to the beginning of smaller numbers, you ensure all numbers have the same number of digits, resulting in a correct numerical sequence.
Look at the highest number in your sections (e.g., if you have house numbers in the hundreds, the maximum is 3 digits).
Right-click (or long-press on iPad/iPhone) the section tab and select 'Rename'.
Add zeros to the front of the number so it matches the maximum digit count. For example, change '3' to '003' and '29' to '029'.
Once all sections are padded with zeros, OneNote will automatically sort '003', '029', and '150' in the correct order.

Copy Sections to a New Notebook
If the sorting issue is a localized glitch affecting only one specific notebook, copying its sections to a new notebook can reset the sorting behavior.
Contact Microsoft 365 Administrator
If the notebooks are stored in OneDrive for Business and the sorting glitches persist across all devices, the issue might require backend support.
Looking for a Better Way to Organize Your Documents? Try WPS Office
If formatting, sorting, and syncing glitches in Microsoft Office applications are slowing you down, consider switching to WPS Office. It provides a lightweight, unified platform for your Word, Excel, and PDF files, designed for seamless organization and high compatibility.
- 1. Download and Install: Get WPS Office for free from the official website and install it on your PC or mobile device.
- 2. Open Existing Files: You can open your existing .docx, .xlsx, and .pptx files directly in WPS Office without losing any formatting.
- 3. Organize Your Workspace: Use the all-in-one tabbed interface to sort and manage your documents cleanly in a single window.

Frequently Asked Questions
Why does OneNote sort the number 29 before 3?
OneNote uses an alphabetical (alphanumeric) sorting logic rather than true numerical sorting for section titles. It reads the first character of the string first; since '2' comes before '3', it places 29 before 3, regardless of the overall value of the number.
Can I manually drag and drop sections to fix the order?
Yes, you can manually click and drag section tabs to reorder them exactly how you want. However, if you rely on the automatic sorting feature, it will revert to alphanumeric sorting unless you pad the numbers with leading zeros.
Does adding leading zeros affect searching in OneNote?
When you add leading zeros to section names (e.g., '029'), searching for '29' might not immediately highlight the section title depending on your search parameters. You may need to type the exact padded string ('029') to locate the section title directly, though page contents remain unaffected.




