Dear MingSin,
Good day! Thank you for reaching out to the Microsoft Community. We are here to assist you.
I appreciate you way of troubleshooting. This happens because SharePoint treats the numbers as text, leading to an alphabetical sort order (e.g., 1, 10, 2, 3).
You can try using a calculated column to ensure the numbers are sorted correctly. Here's how you can do it:
Step-by-Step Solution
- Create a Calculated Column:
- Go to your SharePoint list.
- Click on the settings gear icon and select "List settings."
- Under the "Columns" section, click on "Create column."
- Name the column (e.g., "SortOrder").
- Select "Calculated (calculation based on other columns)" as the column type.
- In the formula box, enter a formula that pads the numbers with leading zeros. For example, if your numbers range from 1 to 100, you can use the formula:
=TEXT([YourNumberColumn], "000")
- Set the data type returned by this formula to "Single line of text."
- Sort by the Calculated Column:
- Go to the view where you want to sort the items.
- Click on the settings gear icon and select "Edit current view."
- In the "Sort" section, select the calculated column (e.g., "SortOrder") and choose "Ascending."
- Save the view.
Example
If your original column contains the numbers 1, 2, 10, 3, the calculated column will convert them to 001, 002, 010, 003, ensuring they are sorted correctly as 1, 2, 3, 10.
As you have folders with multiple files, make sure to apply the same sorting logic within each folder also ensure that the calculated column is hidden from the view if you don't want it to be displayed.
If above steps doesn’t help, you might need to escalate the case to Microsoft support team. Unfortunately, community members don’t have access to remote support tool. This can only be initiated by an Office 365 Global Administrator. The Microsoft Support Team has higher permission to remotely assist you and collect background logs for the root cause. This is a more efficient way in handling this case for you.
If you are an admin, I recommend you get support by following steps from this link: Get support - Microsoft 365 admin | Microsoft Learn. If you are not an admin, you can contact your admin to contact Microsoft support. You can look for the way to find your admin through this link: How do I find my Microsoft 365 admin? - Microsoft Support.
Please accept my apologies for redirecting you to the related team support, as the moderators in this community have limited resources and permission to verify the backend information and to get the quick and better assistance, we requested for this.
I hope you are staying safe and well! Have a great day and take care! 😊
Sincerely,
Naren | Microsoft Community Moderator