Newest first
=SORT(A2:E, 4, FALSE) orders rows by column 4 descending so recent dates float to the top.
SORT reorders rows from an input range and spills the result elsewhere. Source data stays put, unlike Data > Sort range which edits the grid in place. Use SORT on dashboard tabs when lists should refresh automatically. For menu-driven one-time sorts, see the sorting glossary term.
Use SORT for live leaderboards, alphabetized pick lists, and chart sources that must always show newest dates or highest values first.
Skip SORT when you only need the top N rows. SORTN may be shorter. When row order in the source must stay fixed for IDs, sort on an output tab instead.
Pass the data range, including every column you want in the output.
Set sort_column to the 1-based index of the key column inside that range.
Set is_ascending TRUE for A-Z or low-to-high, FALSE for descending.
Add more sort_column and is_ascending pairs for secondary keys when needed.
Leave blank cells below and beside the formula for the spill range.
Wrap FILTER inside SORT when only a subset should be ordered.
=SORT(A2:E, 4, FALSE) orders rows by column 4 descending so recent dates float to the top.
=SORT(Contacts!A2:C, 1, TRUE) lists names A-Z without touching the source tab.
=SORT(FILTER(Data!A:F, Data!F:F="Active"), 3, TRUE) filters then sorts by due date ascending.
Build this without starting from a blank cell
Use a Better Sheets tool for SORT, then watch a walkthrough when you want the full pattern.
Watch how SORT works
Guides that explain SORT in more depth.
Did you know you can use Google Apps Script to turn a Google Sheet into a free, auto-syncing database for your website? This guide shows you exactly how to set it up. You’ll prepare your spreadsheet, write a few lines of code and publish your site. Don’t worry if you’re not a developer, we’ll walk you through it. Why Use Google Sheets as a Database? For small projects, Google Sheets offers many advantages over traditional databases: * Free hosting and storage * Easy to edit data without...
Read post →The IF() formula is a logical function that makes it easy for users to compare a certain value and an expected value. It takes a look at a value to see if basic conditions are met.
Read post →Users can also customize the appearance of their spreadsheets with different fonts, colors, and themes.
Read post →Sorting reorders rows by one or more columns. The Data > Sort range menu sorts selection in place. The SORT function returns a sorted copy that updates when inputs change. Always decide whether related columns must move together as a single row unit.
Read guide →SORTN sorts a range and returns only the first N rows. You choose how many rows, which column drives the sort, and ascending or descending order. Leaderboards and best-seller reports use SORTN instead of manual sorting that goes stale.
Read guide →FILTER returns only the rows from a range that meet one or more conditions. Conditions are boolean arrays the same height as the data. FILTER spills results automatically, so it replaced many INDEX/SMALL helper-column patterns for live subsets.
Read guide →UNIQUE extracts a deduplicated list from a column or table. Optional arguments control whether duplicates appear by row, by column, or with occurrence counts. It powers dropdown source lists, category tabs, and data cleanup without manual copy-paste.
Read guide →Done reading about SORT?
Membership unlocks 636+ tutorials, unlimited generators, and every template. Practical lessons. Zero fluff.
Need this once
Jump to a free tool or a single tutorial for this topic.
Learning Sheets for real
Unlock the full library, generators, and templates with membership.