Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Preview

SC 2.6: Sorting and filtering a table

This is the first page of the lesson. Read it and have a go at the activities. The rest is in the full lesson.

60 minutes

Find the overdue laptops

A school has 600 laptop loans in a spreadsheet. The head asks, "Which laptops are out for more than a week?"

You do not read 600 rows. You sort the table and filter it. The answer appears in seconds.

By the end of this lesson

Note

I can sort a table on a field and filter it to show only the rows I need.

Key words

WordWhat it means
Fieldone column of a table, such as days
Key fielda field whose value is different in every row
Sortput the rows in order by a field
Ascendingsmallest or A first
Descendinglargest or Z first
Filtershow only the rows that meet a condition

The cells students fill in are left blank in this preview.

Starter

Have a go

Starter

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Your answers are marked here and are not kept. A college account keeps every student’s marks.

Sorting puts rows in order

To sort, you choose a field. The rows move so that field is in order. Ascending goes from smallest to largest. Descending goes the other way.

Sort on two fields to break ties. Sort by days, then by name. Rows with the same days are then in name order.

The key field is the field that is different in every row, such as an asset tag. Records are often ordered by the key field.

Worked example: sort by days, then name

Before: namedaysAfter: namedays
Bo7Amy3
Amy3Cy5
Di7Bo7
Cy5Di7

The cells students fill in are left blank in this preview.

Check

Have a go

Check

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Your answers are marked here and are not kept. A college account keeps every student’s marks.

The lesson goes on

9 more parts of this lesson are in the full curriculum, with the tasks, the final check and the labs. A college account gives your students all of it.