Introduction
The ORDER BY clause in Google Sheets helps you sort data in a specific order. It is used inside the QUERY function to arrange rows by one or more columns, either from smallest to largest or largest to smallest. This makes it easier to find top values or organize your data clearly.
When you want to list sales data from highest to lowest to see the best sellers.
When you need to sort a list of names alphabetically for a contact sheet.
When you want to organize dates from earliest to latest in an event schedule.
When you want to display students' scores sorted from highest to lowest.
When you want to sort product prices from lowest to highest to find bargains.