Home›Lesson Plans›Computer Science›Computational Thinking · Grade 4

Sorting & Ordering

Fourth graders learn how computers sort — putting items in order, like numbers from smallest to largest. Sorting makes data easy to search and use. They order a set of numbers, then sort data of their own.

Grade 4Sorting & Ordering45 minutes1 class periodCSTA / ISTEExplicit teaching4 StandardsCSTA
Start the Lesson
Assign or share this lesson

Copy link works with Canvas, Schoology, Moodle and any other LMS — paste it in as a resource or assignment.

Lesson at a Glance

Everything you need before the bell rings

Learning Objectives

Students will be able to…

  • ✓Explain sorting.
  • ✓Put numbers in order.
  • ✓See why sorted data is easier to use.
  • ✓Sort your own data.
Essential Question

How do computers put things in order, and why does it help?

0
Lesson Phases
0
Vocabulary Terms
0
Standards Aligned
0
Interactive Task
Put in Order · Interactive

Sort the Numbers

Project this and have students put the numbers in order from smallest to largest.

🔢 Put the numbers in order — smallest to largest!Try it
Tap the SMALLEST number first!
The Lesson · Use → Modify → Create (a coding progression with Unplugged practice)

45 minutes, five moves

Tap any phase to open the teacher moves and student actions.

1

Hook — Out of Order

5 min

Is it easier to find a name in a sorted list or a messy one?

👩‍🏫 Teacher Moves

  • Show a messy list.
  • Ask what would help.
  • Set the goal.

🎒 Student Actions

  • Look.
  • Guess.
  • Get ready.
2

Use — Sorting

10 min

Students sort.

👩‍🏫 Teacher Moves

  • Send students to Sort the Numbers.
  • Order smallest to largest.
  • Note sorted data is easy to search.

🎒 Student Actions

  • Order.
  • Say.
  • Note it.
3

Modify — Change the Order

12 min

Students modify.

👩‍🏫 Teacher Moves

  • Sort largest to smallest instead.
  • Add a number and re-sort.
  • Check the order.

🎒 Student Actions

  • Resort.
  • Add.
  • Check.
4

Create — Sort Your Data

12 min

Students create.

👩‍🏫 Teacher Moves

  • Pick 5 items (ages, scores).
  • Sort them in order.
  • Say what you notice.

🎒 Student Actions

  • Pick.
  • Sort.
  • Say.
5

Reflect — Reflect

6 min

Students close.

👩‍🏫 Teacher Moves

  • Say what sorting is.
  • Say why it helps.
  • Complete the exit ticket.

🎒 Student Actions

  • Say it.
  • Say.
  • Complete the exit ticket.
Standards Alignment

Built to the standards you report on

Aligned to the CSTA K-12 Computer Science Standards and the ISTE Standards for Students.

CSTA
1B-AP-08

Compare and refine algorithms (like sorting).

CSTA
1B-AP-10

Create programs with sequences & loops.

CSTA
1B-AP-11

Decompose a problem into smaller parts.

ISTE
5 Computational Thinker

Organize data with algorithms.

Differentiation

One lesson, every learner

Multilingual Learners

ELL / EMERGING READERS
  • Sort number cards by hand.
  • Frame: “smallest first.”
  • Line up by height.

Support & Access

IEP / 504
  • Sort 3 numbers.
  • Use a number line.
  • One compare at a time.

Stretch & Extend

GIFTED / EARLY FINISHERS
  • Sort words alphabetically.
  • Describe your sorting steps.
  • Time a sort.
Materials

What to gather

  • 📽️Screen / board
  • 🔢Number cards
  • 💻Sort the Numbers
  • 📏A number line
  • 📓Notebooks
  • 🎫Exit-ticket slips
Vocabulary

Key terms — hover for a quick definition

sortput items in orderordersmallest to largest (or A to Z)comparedecide which is biggerascendingsmallest to largestdescendinglargest to smallestdatathe items you sortsearchfind an item (easier when sorted)swaptrade two items to fix the order
Evaluate

Exit Ticket

Preview the three formative checks. Tap “Sample answer” to see what mastery looks like — hide them before you print for students.

QUESTION 1
What does it mean to sort?
Put items in order (like numbers low to high).
QUESTION 2
Why is sorted data helpful?
It is much easier to search and use.
QUESTION 3
Put in order: 7, 3, 12 — smallest first.
3, 7, 12.

Reflect: sorting & ordering.

Have students sort 5 numbers smallest to largest. A printable sorting worksheet is in the Computer Science library.

Study · Flashcards

Study the key terms

Tap a card to flip it, then rate whether you knew it. Built from this lesson’s vocabulary.

🃏 CS Sorting and Ordering (Grade 4)Flip
Card 1
Term
Tap to flip →
Meaning
0

Nice work!

Practice · Quiz

Check your understanding

A quick self-check with instant feedback, drawn from this lesson’s key terms.

📝 CS Sorting and Ordering (Grade 4)Quiz
Score: 0
1 / 6
Question 1
0%

Nice work!

Practice · Worksheet

Printable worksheet

A print-and-go review sheet with a built-in answer key. Tap “Show answer key” to reveal answers, or print the clean version for students.

🖨️ CS Sorting and Ordering (Grade 4)Print
Name: ________________________
Date: ____________

Part A · Write the word that matches each meaning

Word bank: ascending, compare, data, descending, order, search, sort, swap
  1. put items in order
  2. find an item (easier when sorted)
  3. smallest to largest (or A to Z)
  4. smallest to largest
  5. largest to smallest
  6. the items you sort
  7. trade two items to fix the order
  8. decide which is bigger

Part B · Show what you learned

  1. What does it mean to sort?
  2. Why is sorted data helpful?
  3. Put in order: 7, 3, 12 — smallest first.
Answer key — Part A: 1) sort · 2) search · 3) order · 4) ascending · 5) descending · 6) data · 7) swap · 8) compare
Part B: 1) Put items in order (like numbers low to high). 2) It is much easier to search and use. 3) 3, 7, 12.