AdvertisementYour brand could be hereYour brand hereOn every Darslab page · students, parents and teachersinfo@darslab.comAsk for pricesPricesinfo@darslab.com
☰ Year plan · Computing

Sorting into order

Week 5 · Unit 2: Be a data controller · 3 lessons
1

Up and down in order

Computing 4: Unit 2, pp. 20–33
GoalSort numbers and words into ascending and descending order.
New words
sort · to put things in orderascending order · going up: numbers from smallest to largest, words from A to Zdescending order · going down: numbers from largest to smallest, words from Z to A
Explanation

To sort is to put things in order. Ascending order goes up. Numbers go from the smallest to the largest, and words go from A to Z. Descending order goes down. Numbers go from the largest to the smallest, and words go from Z to A. To sort words, compare their first letters. If the first letters are the same, compare the second letters, and so on. If a short word matches the start of a longer word, the short one comes first, so “Sam” comes before “Samir”. Computers can sort a very long list in a moment.

OrderNumbersWords
ascending (up)2, 5, 8ant, bee, cat
descending (down)8, 5, 2cat, bee, ant
Worked examples
StartAscendingDescending
14327
3920
271414
9209
20273
Start with the numbers 14, 3, 27, 9, 20. Each time, pick the smallest number left and write it down. This gives the ascending order. Reading the same list from the bottom gives the descending order.
StartA to ZZ to A
plumappleplum
applecherrymelon
melonfigfig
cherrymeloncherry
figplumapple
Sort the words plum, apple, melon, cherry, fig from A to Z. The first letters are p, a, m, c, f, so the order is apple, cherry, fig, melon, plum. From Z to A the order is plum, melon, fig, cherry, apple.
StartA to Z
TomTara
TaraTina
TinaTom
When the first letters match, look at the next letters. Tom, Tara and Tina all start with T. The second letters are o, a and i. A comes before i, and i comes before o, so the order is Tara, Tina, Tom. Another list: Sam, Samir, Sara. “Sam” is shorter and comes first. “Samir” comes before “Sara”, because m comes before r.
Class activity

Card sort (with family or friends): write the numbers 18, 5, 33, 12, 40, 27 and 9 on seven cards and shuffle them. Sort them in ascending order. Then turn the pile over to check the descending order. Now write six first names of people in your family on cards. Sort them from A to Z. Time yourself. Is a second try faster?

Practice
1
Put these numbers in ascending order: 31, 8, 17, 25, 4.
A
1Numbers
231
38
417
525
64
2
Put these words in descending order: kite, drum, ball, bell, top.
3
Which comes first from A to Z, Mina or Mila? Explain.
4
Which order is this list in?
A
1Points
290
370
450
530
610