You sort by a checkbox in Google Sheets by turning the checkbox values into something Sheets can order: either sort directly on the checkbox column (Sheets treats a checked box as TRUE and an unchecked box as FALSE) or, more reliably, add a helper column with a formula that converts the box to 1 or 0 and sort on that helper column. The direct method works, but it depends on the checkbox column being the top-level sort key and on every row actually having a checkbox, so the helper column is usually the safer habit.
One note before the steps: Google Sheets menu labels can differ slightly by version, account type and region. If a label you see does not match exactly, look for the closest equivalent under the menu named here.
What You'll Need
- A Google account and access to the spreadsheet (either as owner or with edit rights).
- A sheet that already has checkboxes inserted. If you do not have them yet, select a column, then use Insert > Checkbox. If those cells already contain TRUE/FALSE text, use Insert > Checkbox over the selection to convert them.
- A clear header row at the top of your data so sorting does not eat the first row.
- No blank rows inside the data range, and no merged cells in the columns you are sorting.
Step-by-Step
- Put your headers in place. Row 1 should contain a heading for every column, including the checkbox column (for example "Done"). This lets Sheets recognize the header row when you sort.
- Remove blank rows and merged cells. Scroll through the data range and delete fully empty rows that sit between filled rows, so a careless sort cannot leave gaps. Unmerge any merged cells in the range, because merged cells force Sheets to reorder rows unpredictably.
- Decide which method you want. For a quick one-off sort where the checkbox column is the main thing you care about, use the direct sort in the next step. If you want to sort by checkbox and then by something else (like date or priority), or you plan to re-sort often, skip ahead to the helper-column method, which is more predictable.
- Direct method: select the whole data range. Click the first header cell, then hold Shift and click the last cell of the data. Do not select just the checkbox column, because sorting a single column moves only those values and leaves the rest of each row behind.
- Open the sort dialog. Go to Data > Sort range > Advanced range sorting options. (In some versions the menu item may read slightly differently, but it sits under Data > Sort range.) Tick the box that says the range has a header row if it is offered.
- Choose your sort column and direction. In the Sort by dropdown, pick the checkbox column, then choose A–Z for unchecked first or Z–A for checked first. A checked box counts as TRUE, which sorts after FALSE, so A–Z puts unchecked rows on top.
- Apply and check. Confirm the sort and look at a few rows: the other columns should have moved with each checkbox. If the data looks mangled, press Ctrl+Z (Cmd+Z on Mac) immediately to undo.
- Helper-column method (recommended): add a column. Right-click the column letter next to your data and insert a column, then give it a header such as "SortKey".
- Write the formula. In the first data cell of the new column, enter
=IF(ISBLANK(D2),2,IF(D2=TRUE,1,0)). Replace D2 with the first checkbox cell in your sheet. This returns 0 for checked, 1 for unchecked and 2 for empty cells, so you can spot rows that are missing a checkbox. - Copy the formula down. Drag the fill handle down to the last row, or select the range and use Ctrl+D.
- Sort on the helper column. Select the full data range including the helper column, open Data > Sort range > Advanced range sorting options, choose the helper column as the sort key, and add a second sort rule on your secondary column if you want it.
- Optionally convert the formula to values. If you plan to sort repeatedly and do not want formulas shifting, copy the helper column and use Paste special > Values only to lock the numbers in place.
Common Mistakes
Sorting only the checkbox column. This is the big one. If you select just the checkbox range, Sheets reorders those cells and leaves every other column untouched, so names and dates no longer match their rows. Always select the whole range, headers included, and sort that.
Forgetting the header row option. If Sheets thinks your header is data, it will shuffle it into the body of the sheet. Check the header checkbox in the sort dialog, or leave row 1 out of the selection.
Mixing TRUE/FALSE text with real checkboxes. A cell that contains the text "TRUE" typed by hand behaves differently from a checkbox. Use Insert > Checkbox to convert text cells so all values are the same type.
Empty checkbox cells. A blank cell is not FALSE; it is empty, and it sorts separately. The helper formula above deliberately gives empty cells their own value so you can find them.
Sorting a filtered view. If a filter is active, a sort may behave differently than you expect. Clear the filter first, sort, then reapply it.
Formulas that reference fixed ranges. If other cells sum or count from the checkbox column using fixed ranges, sorting can change which rows those ranges cover. Use full-column references or named ranges where possible.
Tips
Keep the checkbox column adjacent to the data it describes rather than off to the right by itself, which makes accidental single-column selection less likely.
Label the checkbox column with a real header such as "Reviewed" so the sort dialog lists it by name instead of "Column F".
Use COUNTIF(D2:D100,TRUE) somewhere outside the sorted range to keep a live count of checked items that survives re-sorting.
If the sheet is shared, sort during a quiet moment and let collaborators know; a sort changes the view for everyone with edit access.
Consider a filter view for temporary reordering instead of sorting the underlying data, so the original row order is preserved.
Troubleshooting
The rows came apart. Press Ctrl+Z (Cmd+Z on Mac) straight away. Then redo the sort with the full range selected.
Nothing moves when I sort. Check that the sort column is inside the selected range. If you sort on a column that is not part of the selection, nothing changes.
Checked items land in the wrong place. Remember that the direction is inverted from intuition: checked equals TRUE, so Z–A puts checked rows first. Also check for text "TRUE" values or extra spaces, which break the ordering.
My checkbox column lost its boxes. Sorting should not do this, but pasting can. Reselect the column and use Insert > Checkbox to restore them.
Formula results changed after sorting. Relative references shift when rows move. If a helper formula now points at the wrong cell, rewrite it with absolute references like $D2 or convert the helper column to values before sorting.
Frequently Asked Questions
Does Google Sheets treat a checked box as TRUE?
Yes. A checked checkbox holds the value TRUE and an unchecked one holds FALSE, which is why Sheets can sort on the column directly. Blank cells are empty, not FALSE.
How do I sort checked items to the top?
Sort the checkbox column in Z–A order. Because TRUE sorts after FALSE, descending order brings the checked rows to the top.
Can I sort by checkbox and then by date?
Yes, using Data > Sort range > Advanced range sorting options. Add the checkbox column as the first sort rule and the date column as the second.
Why did my other columns get messed up after sorting?
Because only the checkbox column was selected. Undo the change and sort the entire data range instead, so every row moves as a unit.
Do checkboxes work in the Google Sheets mobile app?
Checkboxes display and can be ticked in the mobile app, but sorting is easiest on desktop. On mobile, use the Data menu options available in the app for the range you have selected, and expect fewer sort settings.