Formatting Issues

Fix Word Table Sorting Double-Digit Page Numbers Incorrectly

Anum MushtaqAnum Mushtaq Nov 3, 2026 868 views

Question details

The user needs to correctly sort a table column containing page numbers, as double digits are currently being sorted alphabetically instead of numerically.

How to Fix Word Table Sorting Double-Digit Page Numbers Incorrectly
Product
Microsoft Word 2016
Device & OS
not provided
Scenario
Sorting a table column containing page numbers to organize a document index or list.
Observed behavior
Word sorts the numbers as text, placing double digits like 10 and 11 before single digits like 2, due to non-numeric entries in the column.
Before you start

Review the table column you want to sort and identify any cells containing text, symbols, or blank spaces instead of numbers.

Solution 1Recommended

Remove Text Entries and Sort as Numbers

Remove non-numeric text from the column to allow Word to recognize and sort the values numerically.

When a table column contains a mix of numbers and text (like 'Cover' or 'Back Cover'), Word defaults to sorting the entire column as text. This text-based sorting logic compares digits one by one from left to right, which causes numbers starting with '1' (like 10, 11) to appear before '2'.

1
Locate Non-Numeric Text

Scroll through the column containing the page numbers in your Word document.

2
Remove or Relocate Text Entries

Delete any text entries such as 'Cover', 'Back Cover', or letters. If these labels are necessary, move them to an adjacent separate column.

3
Access the Sort Tool

Click anywhere inside the table to reveal the Table Tools, navigate to the 'Layout' tab on the ribbon, and click 'Sort' in the Data group.

4
Apply Numeric Sorting

In the Sort dialog box, select your target column under 'Sort by', ensure the 'Type' dropdown is set to 'Number' instead of 'Text', and click 'OK'.

Remove Text Entries and Sort as Numbers
Alternative to Deleting Text: If you must keep text labels alongside the numbers, consider using a separate dedicated column so the primary page number column remains strictly numeric.
Seamless Table Formatting

Easily Sort Table Data with WPS Writer

WPS Writer offers an intuitive table layout tool that accurately sorts numbers, text, and dates. You can easily manage complex document tables and ensure perfect numeric alignment without formatting conflicts.

  1. 1. Open Your Document: Launch WPS Office and open your document containing the table.
  2. 2. Select the Table Column: Highlight the specific column you wish to sort numerically.
  3. 3. Access Table Tools: Navigate to the 'Table Tools' tab at the top of the interface and click on the 'Sort' button.
  4. 4. Set Sorting Preferences: In the dialog box, select 'Number' from the Type dropdown menu, choose Ascending or Descending, and click 'OK'.
Easily sort numeric and text columns with high precisionFully compatible with Microsoft Word .docx filesFree and lightweight alternative for document editingIntuitive interface for table creation and formatting
microsoft office alternative - wps office

Frequently Asked Questions

Why is Word sorting my numbers like 1, 10, 2, 20?

This happens because Word is treating the column as text rather than numbers. When sorting alphabetically as text, the character '1' (in 10) comes before '2'. Ensuring the column format is set to 'Number' in the Sort dialog resolves this.

Can I sort a column that contains both text and numbers?

Word struggles to sort mixed data accurately within a single column. For best results, either remove the text completely, move the text to an adjacent column, or manually arrange the text rows after sorting the purely numeric data.

Where is the Sort button located in Word?

Click anywhere inside your table, which will activate the 'Table Tools' menu on your ribbon. Click on the 'Layout' tab (located next to Table Design), and you will find the 'Sort' button in the 'Data' group on the far right.