Sort Table Rows: A-Z, Numbers & Dates
A free add-on for Google Docs™ by Single Task Tools. One task: sort a table by the column you click in, rows moved whole with their formatting. Menus in English, Spanish, Portuguese, French, German and Italian.
Install it from the Google Workspace Marketplace™ (search for “Sort Table Rows”), or from Extensions › Add-ons › Get add-ons inside Google Docs™.
How to use it
- Click any cell of the column you want to sort by.
- Open Extensions › Sort Table Rows and choose Sort A → Z by this column, Sort Z → A, or Sort low → high / high → low for numbers and dates.
- The rows move whole, with their bold, colors, links and highlights; the first row stays in place as a header. Ctrl+Z (Cmd+Z on a Mac) undoes it.
How things are sorted
- Text: the way a person would, accents and ñ in their place, “item 2” before “item 10”, capitals together with small letters.
- Numbers: in the format of your language (1,234.56 or 1.234,56 or 1 234,56 or 1'250.00), currency signs and codes before or after ($1,500.50, R$ 1.250,00, 12 EUR, 15€), percentages, negatives in parentheses.
- Dates: 2026-03-12, 12/03/2026 (day first; month first in English: 03/12/2026), 12.03.2026, two-digit years. Low → high means oldest first.
- Empty cells, and cells that are not numbers or dates in the numeric modes, go last in both directions. Ties keep their original order.
Header row and limits
- First row is a header is an option in the same menu, on by default: the first row stays in place. Turn it off to sort every row.
- Up to 300 rows per table (about 2 seconds per 100 rows).
- If the rows to sort contain merged cells or footnotes, the add-on warns and changes nothing: split the cells (or take the footnotes out), sort, and put them back. A merged title row at the top does not get in the way.
- Works with tables in the body, headers and footers of the document.
- Insert example table, in the same menu, adds a four-column table (name, city, amount, date) so you can try it without touching your own documents.
Questions
Does anything leave my document?
No. The add-on is a script that runs inside your Google account and only asks for permission to edit the document it is open in. No servers of ours, no tracking, no account. See the privacy policy.
No. The add-on is a script that runs inside your Google account and only asks for permission to edit the document it is open in. No servers of ours, no tracking, no account. See the privacy policy.
Why can't I sort a table in Google Docs™ itself?
Google Docs™ has no built-in table sorting; people usually copy the table to a spreadsheet, sort it and paste it back, losing formatting on the way. This add-on sorts it in place.
Google Docs™ has no built-in table sorting; people usually copy the table to a spreadsheet, sort it and paste it back, losing formatting on the way. This add-on sorts it in place.
Can I undo?
Yes. Ctrl+Z (Cmd+Z on a Mac) puts the rows back in one step.
Yes. Ctrl+Z (Cmd+Z on a Mac) puts the rows back in one step.
Does it work in the mobile app?
No. Google Docs™ add-ons run in the web version only.
No. Google Docs™ add-ons run in the web version only.
Anything else: support@singletasktools.com.