New skill
Sorting = step-by-step
Sorting a list (numbers, names) from smallest to largest looks easy, but computers can't see the whole list at once. They sort with a SEQUENCE of small steps โ usually COMPARE two items and SWAP if wrong.
How computers sort a list โ compare two, swap if needed, repeat.
New skill
Sorting a list (numbers, names) from smallest to largest looks easy, but computers can't see the whole list at once. They sort with a SEQUENCE of small steps โ usually COMPARE two items and SWAP if wrong.