G2 Computing (K237) for the 2027 Singapore-Cambridge Secondary Education Certificate (SEC) includes sorting and filtering spreadsheet data. A spreadsheet can display marks in the correct descending order and still be wrong if the marks have been moved independently of the student names. In a data table where each row represents one record, sort the complete set of related columns using the marks column as the sort key, not the marks alone.
For Punggol parents, begin with a tiny fictional table rather than a large assessment file. Ask your child to identify which cells belong to the same record, predict what should move together and verify the result after sorting. This guide demonstrates how a seemingly successful operation can corrupt the meaning of a dataset, and how to check the result independently.
- A row in a record-based table contains related values about one item or person.
- The sort key decides the order; it does not decide which columns should be separated from their records.
- When sorting a record table, include all columns that belong to the records and identify the header correctly.
- Sorting changes order; filtering hides records that do not satisfy the chosen criterion.
- Check a known identifier and its associated values after sorting, not just the ordered numbers.
- Equal sort-key values may require a second criterion if the task specifies one.
- Use fictional data for practice and work on a copy rather than changing original records.
Find your next learning step
- 1. Where does sorting fit in K237?
- 2. What exactly is a record?
- 3. What does correct descending order look like?
- 4. How can an apparently correct sort be wrong?
- 5. How should the learner perform the operation?
- 6. How do we check the result independently?
- 7. What is the difference between sorting and filtering?
- 8. How do two sort keys work?
- 9. What if the numbers are stored as text?
- 10. Try three independent data checks
- 11. How can parents spot the first unstable step?
- 12. A practical sequence towards independent work
1. Where does sorting fit in K237?
The official G2 Computing syllabus identifies ordering data according to the contents of a column and selecting data with filter criteria as spreadsheet skills. The learning goal here is not to memorise a specific menu path. It is to understand what the operation does and check the meaning of the finished worksheet.
This guide uses a small fictional dataset with constant values, not real student results. Menu labels vary by spreadsheet version and operating system. Follow the tools and file requirements specified by the school.
2. What exactly is a record?
A record is a group of related values about one entity. In our imaginary practice table, an ID, a name and a mark belong to the same record. ID P01 identifies Ada, who scored 62; P02 identifies Ben, who scored 85; P03 identifies Cara, who scored 73; P04 identifies Dan, who scored 85.
An ID can help verify the relationship when two people have the same mark or similar names. We use invented IDs to make that relationship clear. This is not advice to store personal school results in a public worksheet.
Contents · Previous: section 1 · Next: section 3
3. What does correct descending order look like?
Sort the complete four-record table by Mark, largest to smallest. For this example, use ID ascending as a second criterion for tied marks. The resulting order is P02 Ben 85, P04 Dan 85, P03 Cara 73, P01 Ada 62.
The highest mark appears twice. This is legitimate; neither row should be discarded just because the marks match. If the question does not specify a tie-breaking rule, either order of equal-key records satisfies a simple descending sort.
Contents · Previous: section 2 · Next: section 4
4. How can an apparently correct sort be wrong?
Suppose only the cells in the Mark column are moved, leaving the ID and Name columns unchanged. The marks become 85, 85, 73, 62 next to Ada, Ben, Cara and Dan respectively. The Mark column is correctly ordered, yet Ada is assigned 85 instead of 62 and Dan is assigned 62 instead of 85.
The table below shows why checking only the largest and smallest mark is inadequate. Both versions contain the same numbers and the same total of 305. The error lies in the association between values, not in the set of marks. A spreadsheet may warn about neighbouring data; use the full-record selection and verify the result.
| Original record | Correct complete-record sort | Incorrect marks-only sort |
|---|---|---|
| P01 Ada — 62 | P02 Ben — 85 | P01 Ada — 85 |
| P02 Ben — 85 | P04 Dan — 85 | P02 Ben — 85 |
| P03 Cara — 73 | P03 Cara — 73 | P03 Cara — 73 |
| P04 Dan — 85 | P01 Ada — 62 | P04 Dan — 62 |
Contents · Previous: section 3 · Next: section 5
5. How should the learner perform the operation?
Before sorting, identify the complete contiguous record table, including each related column. In a typical Excel workflow, select a cell in a correctly structured table or select the complete table range, then use the sorting controls and choose the Mark column as the sort key. Ensure that the program treats the header as a header.
If a prompt asks whether to expand a partial selection, check that expanding includes exactly the intended records and columns. If uncertain, cancel and select the complete table explicitly. Save a working copy and compare several identifiers against the original after sorting.
Contents · Previous: section 4 · Next: section 6
6. How do we check the result independently?
Choose a distinctive record before the operation, such as P01 Ada 62. Find P01 after sorting and confirm the mark remains 62. Do the same for P04 Dan 85. Check that the number of data rows remains four and the column headers stay at the top.
A sum of marks is a helpful additional check but cannot prove that every mark belongs to the right ID. An independent record check tests the property that must remain unchanged while the order changes.
Contents · Previous: section 5 · Next: section 7
7. What is the difference between sorting and filtering?
Sorting rearranges records into a specified order. Filtering normally changes which records are visible according to a condition without deleting the other records. For the original table, a filter of Mark at least 80 displays P02 and P04. Clearing that filter makes the other two records visible again.
A learner should distinguish the number of visible records from the number of records in the dataset. The operation should match the task: use filtering to show qualifying items and sorting to rank or arrange items. The two can be combined when instructed.
Contents · Previous: section 6 · Next: section 8
8. How do two sort keys work?
A task might ask for descending marks and, when marks match, ascending IDs. Apply Mark as the primary key and ID as the secondary key. Ben’s P02 appears before Dan’s P04 when both score 85. The secondary key should not take priority over the primary key.
If the child sorts by ID alone at the end using a new independent sort, the final order might no longer satisfy descending marks. Where the software supports multi-level sorting, specify the priority in the same sort operation. Then read the output against both criteria.
Contents · Previous: section 7 · Next: section 9
9. What if the numbers are stored as text?
A worksheet may contain values entered as text rather than numbers. This can lead to unexpected ordering or a prompt about how to handle numeric-looking text. For instance, text ordering can place ‘100’ before ’20’ even though 100 is numerically greater than 20.
Check the intended data type, not just how cells look. If the task calls for numbers, correct the representation using the school-approved method and check that the conversion has preserved values. Do not convert identifiers such as 001 into numbers if the leading zero is meaningful.
Contents · Previous: section 8 · Next: section 10
10. Try three independent data checks
Use a fresh table: R01 Plant A 18, R02 Plant B 25, R03 Plant C 12, R04 Plant D 25. A: Sort complete records by height descending, then ID ascending for ties. B: Filter the original records to height at least 18. C: Explain why a total-height check alone cannot detect a height column sorted independently.
Answers: A: R02 Plant B 25, R04 Plant D 25, R01 Plant A 18, R03 Plant C 12. B: R01, R02 and R04 are visible; R03 remains in the data but is hidden by the filter. C: the sum stays 80 even if the values are associated with different plants. The identity-to-height relationship is the essential check.
Contents · Previous: section 9 · Next: section 11
11. How can parents spot the first unstable step?
If the learner selects the wrong cells, practise identifying the boundaries of the table. If they choose the wrong ordering field, ask them to restate the requirement. If the order is correct but record relationships are broken, compare the output to the original row by row. If only filtering is misunderstood, demonstrate clearing a filter.
Record the specific error rather than saying the child is poor at Computing. A small correct file completed without step-by-step instructions is stronger evidence of the targeted skill than a larger file made by following a video exactly.
Contents · Previous: section 10 · Next: section 12
12. A practical sequence towards independent work
Use four simple sessions if suitable: first identify records and keys; second sort one complete table; third filter and restore it; fourth combine a new dataset, multiple criteria and record checks. The eduKate Fencing Method here means changing one constraint at a time before combining them.
Keep the original dataset unchanged. Ask the learner to explain what changed and what should stay fixed. If a school task still goes wrong, bring the original and resulting practice files to the teacher, avoiding sensitive data. This is one spreadsheet skill within K237, not the whole subject or a promise of a grade.
Contents · Previous: section 11
Official syllabus and related learning guides
Official 2027 SEAB syllabus — K237, printed page 7, Module 4.5: sorting and filtering.
SEAB 2027 G2 school-candidate syllabus directory
Use the official syllabus for the examination year and the school’s current instructions. All worked questions in this guide are original teaching examples, not SEAB questions or marking schemes.
- G2 Computing: data validation versus accuracy
- G2 Computing: relative and absolute cell references
- G2 Computing: building a working solution independently
