How to Sort a Table Alphabetically in Google Docs

When compiling client directories, inventory records, project tasks, or participant rosters in Google Docs, tables offer an orderly way to structure text. However, as new rows are appended over time, items frequently fall out of alphabetical order. Many users believe they must copy the data into Google Sheets to sort it, then paste it back into their document.

Fortunately, modern releases of Google Docs feature a native table sorting capability that lets you reorder table rows alphabetically or numerically directly inside your document. Here is how to sort a table alphabetically in Google Docs.


Step-by-Step: Sorting a Table Alphabetically in Google Docs

  1. Open your document in Google Docs on your desktop browser.
  2. Locate the table you wish to sort.
  3. Hover your mouse cursor over the left edge of the table rows until you see the small Table control handle appear (or click directly into any cell within the column you wish to sort by).
  4. Alternatively, hover your cursor just above the column header to reveal the small three-dot menu icon, or right-click anywhere within the column.
  5. In the context menu that appears, locate the Sort table options:
    • Sort table ascending: Sorts rows alphabetically from A to Z (or lowest to highest numbers).
    • Sort table descending: Sorts rows in reverse order from Z to A.
  6. Click your preferred sorting direction. Google Docs will immediately rearrange all rows according to the selected column.

How to Prevent Header Rows from Being Sorted

A common issue when sorting tables is that the top header row (containing titles like “Name”, “Date”, or “Department”) gets sorted into the alphabetical data rows. To lock your table header at the top:

  1. Highlight your table’s top row.
  2. Right-click on the row and select Table properties from the context menu.
  3. In the Table properties sidebar on the right, expand the Row section.
  4. Tick the checkbox labelled Pin header row(s) (or Header row).

Once pinned, Google Docs recognises the row as a permanent table header. Subsequent sorts will reorganise only the body rows beneath it while keeping the header safely anchored.


Multi-Column Sorting Alternative

If you require complex multi-level sorting (for instance, sorting first by “Department” and then alphabetically by “Last Name”):

  • Highlight your table cells and press Ctrl + C to copy.
  • Open a new tab in Google Sheets and paste the data.
  • Select your dataset and choose Data > Sort range > Advanced range sorting options to apply multi-tier sorting criteria.
  • Copy the sorted result and paste it cleanly back into Google Docs.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.