Sorting and filtering
Welcome to the Sorter level! Here you’ll learn to sort, filter, and clean up data, and the spreadsheet will learn to make decisions by itself.
- Sorting rearranges the rows in order. Like from the best grade to the worst.
- Filtering hides the rows you don’t need right now. It doesn’t delete them. When you turn the filter off, they’re back.
Careful with sorting
This is the most important rule in Sorter: when you sort, the whole row has to move. The subject and the grade together.
If you sorted only column B (the grades), the grades would get shuffled, but the subjects would stay where they were. Math would suddenly have somebody else’s grade!
Never sort by selecting just one column. Use the filter (below). It sorts whole rows. If something goes wrong, press Ctrl+Z right away.
Turn on the filter
-
On the
Gradessheet, select A1:B6 (the headings and the data, without the average). -
Click Data → Create a filter. Small icons appear next to the headings.
In Excel: Data → Filter.
Sort
-
Click the icon next to
Grade. -
Choose Sort A → Z. The grades get sorted from the best (1) to the worst (3).
-
Check that Spanish still has its 3. The whole rows moved together.
Filter
-
Click the icon next to
Grade. -
Click Filter by values. Untick everything except
1and click OK. -
You only see the subjects with a 1. The other rows are hidden. Notice that the row numbers on the left skip.
-
Click the icon again and choose Select all → OK. Everything is back.
If you want the subjects back in their original order, sort them by column A, or press Ctrl+Z.
Turn off the filter
Data → Remove filter. The icons disappear.
دورك 💪
- You can turn on a filter.
- You can sort whole rows.
- You can hide rows and show them again.
- You know a filter doesn’t delete anything.
Done when: you can sort and filter, and you know the whole row has to move.
What to take away from this lesson
- Sorting rearranges rows, filtering hides them.
- The whole row has to move together.
- Data → Create a filter.
- A filter doesn’t delete anything.
© 2026 Ing. Martin Polak / AlgoRhino · شروط استخدام المحتوى