To sort a column alphabetically in Google Sheets, select the column (or any cell in it), then choose Data > Sort sheet A to Z — or right-click the column letter and pick Sort sheet A to Z. That single command sorts the whole sheet by the selected column, keeping each row intact. If you only want the column's text alphabetised without dragging other columns along, use Data > Sort range instead, which lets you define exactly which range is sorted. Labels can differ slightly between the desktop browser version and the Google Sheets mobile app, and Google occasionally renames items, so look for the closest match if the wording is not identical.
What You'll Need
- A Google account and access to Google Sheets at sheets.google.com, or the official Google Sheets app on Android or iPhone.
- Edit or owner permission on the spreadsheet. If the file is shared as View only, you cannot sort it.
- A header row if you want the column names to stay on top — Sheets detects headers automatically but you can also set them manually.
- A backup option: sorting is immediate and only undoable via Ctrl+Z (Cmd+Z on Mac) or Edit > Undo, so consider File > Make a copy before sorting a large or irreplaceable sheet.
Step-by-Step
- Open the spreadsheet in Google Sheets on desktop, or open the file in the Sheets app on your phone or tablet.
- Click any cell in the column you want to sort — for example a name in column A. You do not need to highlight the whole column; a single cell tells Sheets where to look.
- Check whether you are sorting the sheet or a range. Sorting the whole sheet reorders every row together, which is almost always what you want when the columns belong to the same records. Sorting a range only touches the block you select.
- Use the menu. Click Data, then choose Sort sheet > Sort sheet by column A, A to Z (the menu names the column you are in, so it might read “by column B” or similar). For reverse order pick Z to A.
- Or use the right-click shortcut. Right-click the letter at the top of the column (for example the “A” header) and choose Sort sheet A to Z from the context menu. This is the fastest route on desktop.
- Confirm the header stayed put. Google Sheets usually detects a header row and freezes it out of the sort. If your header row sorted down into the data, press Ctrl+Z to undo and see the next step.
- Set headers manually if needed. Select your data including the header row, then go to Data > Sort range > Advanced range sorting options. Tick Data has header row and choose your column from the Sort by dropdown, then click Sort. This guarantees the header is excluded.
- Sort a single range without touching the rest. Highlight only the cells you want reordered, then choose Data > Sort range > Sort range by column A, A to Z. Sheets will warn you if adjacent data might be affected — read the prompt before accepting.
- On mobile, select the column by tapping its letter at the top of the sheet, then tap the three-dot menu and look for Sort A to Z or Sort Z to A. If the option is greyed out, you likely have View-only access or a protected range.
- Verify the result. Click into a couple of rows and confirm the values that belonged together are still together. This is the single best check that you sorted rows, not just one column.
Common Mistakes
Sorting one column in isolation. The most damaging error is highlighting just the cells in column A and sorting them, which scrambles the relationship between names and the phone numbers or addresses beside them. Always sort the sheet or an explicitly defined range, never a bare column of values. If you catch it immediately, Ctrl+Z or Cmd+Z restores everything; if you have closed the tab, the change is already saved and undo may no longer be available.
Losing the header row. Beginners often sort and find the header “Name” sitting somewhere in the middle of the list. The fix is to declare the header via Data > Sort range > Advanced range sorting options and tick Data has header row.
Expecting numbers and dates to sort like text. If your “numbers” were typed with leading apostrophes or pasted as text, A to Z sorts them character by character, so 10 comes before 2. Convert them to real numbers with Format > Number before sorting.
Forgetting that formatting does not follow reliably. Cell colours and manual formatting can look mismatched after a sort because Sheets moves values, not always the styling you applied by hand. Conditional formatting, by contrast, follows the data, so prefer it for colour coding.
Sorting a filtered view and assuming everything moved. When a filter is active, sorting still reorders the underlying rows, but you only see part of them — so the visual result can look wrong until you clear the filter.
Tips
- Sort by more than one column at once: Data > Sort range > Advanced range sorting options lets you add a second sort column, so ties in the first are broken logically.
- Freeze your header row with View > Freeze > 1 row so it always stays visible and is less likely to be dragged into a sort.
- Use a filter view (Data > Create a filter) when you want to sort temporarily; filters in a filter view are private to you unless you share the view.
- Case differences usually do not affect A to Z ordering in Sheets, but spaces and punctuation do — a leading space quietly pushes an entry to the top. Trim stray spaces before sorting.
- Keep a duplicate tab (right-click the tab > Duplicate) when sorting sensitive lists, so you can compare the before and after.
- Use the SORT function in a formula if you want a sorted copy that updates automatically while the original stays untouched.
Troubleshooting
The sort option is greyed out. Check that you have edit access, that the range is not protected (Data > Protected sheets and ranges), and that you are not working in a cell inside a merged block that confuses the selection.
Data became misaligned after sorting. Undo immediately with Ctrl+Z or Cmd+Z. If undo is unavailable, restore a previous version via File > Version history > See version history and pick a timestamp before the sort. This replaces the current state, so copy anything you have added since if it matters.
The header moved into the data. Undo, then use the advanced sort range dialog with Data has header row ticked. If the header still moves, your header may be formatted identically to body text; apply bold or a distinct fill to make it obvious to Sheets.
Numbers sort strangely. Select the column, open Format > Number > Automatic, and remove any leading apostrophes manually. A quick way to spot text-numbers is that they align left while real numbers align right.
Only part of the sheet sorted. You probably sorted a range rather than the sheet. Select a cell in the whole data block and use Data > Sort sheet instead.
Nothing happens when you tap Sort on mobile. Make sure you are not in a protected range, that the sheet is not in View mode, and that the app is updated from the official store.
Frequently Asked Questions
Does sorting a column keep rows together?
Yes, if you use Sort sheet or a defined Sort range that covers every column. Only sorting a single isolated column breaks rows apart.
Can I sort alphabetically without changing the original order?
Not in place — sorting rewrites the row order. Either duplicate the sheet/tab first, or use the SORT function in a separate range to produce a sorted copy.
How do I undo a sort?
Press Ctrl+Z on Windows/ChromeOS or Cmd+Z on Mac, or use Edit > Undo. If that no longer works, restore from File > Version history.
Why do capitals and lowercase sort oddly?
Sheets generally ignores case when sorting, but stray spaces, punctuation or numbers stored as text can change the order. Clean the data first.
Can I sort by a column that is not first?
Yes. Put your cursor in that column and sort the sheet, or choose the column in the advanced sort range dialog's Sort by dropdown.
Will sorting break formulas?
Relative references usually adjust with the moved cells, but formulas that point at fixed cells can return unexpected results. Check key formulas after sorting and undo if something breaks.