How to Sort SharePoint Issue Numbers Correctly (e.g., 4.2 vs 4.10)
Question details
The user needs to sort issue numbers like 4.2 and 4.10 in correct numerical order instead of lexicographical order in a SharePoint list.

- Product
- SharePoint
- Device & OS
- not provided
- Scenario
- Organizing and viewing an issue tracker or list where items are identified by version-like numbers.
- Observed behavior
- SharePoint sorts text values lexicographically, causing numbers like 4.10 and 4.11 to incorrectly appear before 4.2.
Ensure you have the necessary list editing permissions in your SharePoint site to modify column settings or add new calculated columns.
Change the Column Type to a Number
If your issue numbers do not strictly require a text format and only contain single decimal points, converting the column to a Number type will allow SharePoint to sort them numerically by default.
SharePoint handles sorting differently based on the column type. By configuring the column as a decimal number, SharePoint will evaluate the actual numeric value rather than reading it character by character.
Navigate to your SharePoint list, click the Gear icon in the top right corner, and select List Settings.
Scroll down to the Columns section and click on the name of your issue number column.
Change the 'The type of information in this column is' setting to 'Number (1, 1.0, 100)'.
Click OK at the bottom of the page. Return to your list and sort the column to verify the numbers now appear in correct numerical order.

Use a Padded Calculated Helper Column
If the issue numbers must remain as text (e.g., multiple decimal points or included letters), use a calculated column to add leading zeros so lexicographical sorting matches numerical sorting.
Track and Sort Issues Seamlessly with WPS Spreadsheet
If you are managing issue trackers offline or need a lightweight alternative to Microsoft Office, WPS Spreadsheet offers advanced sorting, filtering, and seamless compatibility with Excel formats without the formatting headaches.
- 1. Download and Install: Download WPS Office for free from the official website and launch WPS Spreadsheet.
- 2. Open Your Issue Tracker: Import your exported SharePoint list or open your existing Excel issue tracker.
- 3. Apply Custom Sorting: Select your data range, navigate to the Data tab, and click Sort to easily organize complex issue numbers.

Frequently Asked Questions
Why does SharePoint sort 4.10 before 4.2?
If the column is formatted as a single line of text, SharePoint sorts values lexicographically (alphabetically). It compares the numbers character by character. Since the character '1' in 4.10 comes before '2' in 4.2, 4.10 is incorrectly placed first.
Can I convert an existing text column to a number column in SharePoint?
Yes, you can edit the column properties in the List Settings and switch its type from 'Single line of text' to 'Number'. However, ensure that none of the rows contain text strings or multiple decimals, as they may cause errors or result in lost data during conversion.
What is the best way to format text numbers to avoid sorting issues?
Padding your numbers with leading zeros to match the maximum expected character length (e.g., writing 4.2 as 04.02) ensures that alphabetical text sorting will perfectly align with actual numerical order.




