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
3

Sorting by hand and by sheet

Computing 4: Unit 2, pp. 20–33
GoalDescribe the steps to sort in a spreadsheet and compare this with sorting cards by hand.
New words
spreadsheet · a program that keeps data in a grid of rows and columnscell · one box in a spreadsheet gridsort command · the spreadsheet tool that puts rows in order
Explanation

A spreadsheet keeps data in a grid of cells. To sort in a spreadsheet, first select all the cells that hold the data, including the headings. Next, open the Data menu and choose Sort. Then pick the column to sort by and the order. A to Z or Smallest to largest gives ascending order, and Z to A or Largest to smallest gives descending order. The rows rearrange at once. Sorting cards by hand does the same job but takes longer, and a new card must be put in its place by hand. In a spreadsheet you add the new row and sort again.

Startselect the data and headingsopen Data, then Sortchoose the columnchoose the orderEnd
Worked examples
AB
1TitlePages
2Tiny Ants32
3Moon Trip64
4Kite Day96
5Sea Stories120
6Big Map Book200
This spreadsheet has the five books sorted by Pages, smallest to largest. Tiny Ants has the fewest pages and Big Map Book has the most.
AB
1TitlePages
2Tiny Ants32
3Moon Trip64
4Kite Day96
5Sea Stories120
6Big Map Book200
7Rain Day80
A new book, Rain Day with 80 pages, is added at the bottom. After sorting again by Pages, it moves between Moon Trip (64) and Kite Day (96). With paper cards you must find that place yourself.
by hand: slowspreadsheet: fast
A few cards sort quickly by hand. A list of 500 names takes hours by hand, but a spreadsheet sorts it in a moment.
Class activity

Cards against the sheet (with family): write ten number cards, shuffle them and sort them by hand. Time yourself. Now take a sorted pile of eight cards and add one new card in the right place. How long did it take? A computer would add the new row and sort again in a moment. If you have a computer or tablet, type six rows with a name and an age into a spreadsheet and sort them by age from smallest to largest, then from largest to smallest.

Practice
1
Put the steps in order: A choose the column, B select all the data with the headings, C open Data and choose Sort, D choose ascending or descending.
2
Sort this spreadsheet by Kg from smallest to largest. Write the new order of the fruits.
AB
1FruitKg
2mango7
3lime2
4grape5
5peach9
3
Which is quicker for sorting 200 records, cards or a spreadsheet? Why?
4
This class list is sorted from A to Z, and a new pupil, Amir, has been typed at the bottom. Where will Amir be after sorting again? What would you do on paper instead?
A
1Name
2Aisha
3Ben
4Chen
5Diego
6Amir