How to sort a table in Google Docs
By Jake Marsh · Updated
Google Docs has no sort for tables. To sort a table in Google Docs, click anywhere inside it, open Extensions, Tidywell, Sort lines, lists or tables, choose the column under Sort rows by column, pick the Order (such as A to Z or Numbers, low to high), press Preview sort, then Apply. The rows are reordered with their formatting, and the header row stays on top.
Steps
-
Click inside the table. No need to select it.
-
Open Extensions, Tidywell, Sort lines, lists or tables.
-
Pick the column under Sort rows by column: Column 1, Column 2 and so on, left to right.
-
Pick the Order:
Order Sorts by A to Z, Z to A Text, with numbers inside text in number order ("Room 9" before "Room 10") Numbers, low to high or high to low The number in each cell, such as prices or scores Dates, oldest first or newest first The date in each cell Shortest first, Longest first Length of the cell text Reverse the current order, Shuffle Position only -
For dates, say how they're written. If cells hold dates like 03/04/2026, choose Month first (March 4) or Day first (3 April).
-
Press Preview sort to see the new order of the rows.
-
Press Apply. Undo sits right there if the result isn't what you wanted.
What moves with each row
Each row moves as a whole: every cell's text, bold and italics, links, colors and fonts. The first row is treated as the header and stays on top.
Why not copy it to Sheets and back
The usual workaround is to paste the table into Google Sheets, sort it there and paste it back. That loses the Docs formatting, links can come back as plain text, and the table has to be resized and restyled every time the list changes. Sorting in place keeps the table you already formatted.
Lists and lines too
The same tool sorts bulleted and numbered lists (each sub-item stays with its parent) and plain lines of text. Select the lines, or click inside the list, and pick an order.
What it costs
Tidywell is $4.99 a month or $44 a year per Google account. Free trial: 15 Apply runs or 14 days, whichever comes first. No card needed. Every plan and the install link are on the Tidywell page.
Tidywell: Sort, Change Case & Clean Up Text
Sort lines, lists and tables, change case and clean up text in Google Docs, with a preview of every change and Undo $4.99 a month or $44 a year per Google account.
Questions
Can I sort by two columns?
One column per sort. Sort by the less important column first, then by the main one; rows that tie on the main column keep their order from the first sort.
Will the header row be sorted too?
No. The header row stays at the top.
Can I undo a table sort later?
Yes. Every Apply goes into History for that Doc, and Undo puts the rows back in their old order, even after you've closed the Doc.
Does it sort numbers with currency signs?
Yes. Numbers, low to high reads the first number in each cell, commas included, so $1,200 sorts after $95.
More Tidywell guides
- How to remove line breaks from pasted text in Google Docs
- How to change text to sentence case in Google Docs
More Google guides
- How to write chemical equations in Google Docs (Texwell)
- How to add code to Google Slides (Syntaxwell)
- How to add audio to a Google Form (Remarkwell)