Bubble sort
Compare neighbours and swap them, pass after pass, until a pass makes no swaps.
You will be able to
- Show the list after each pass of a bubble sort
- Count passes, swaps and comparisons
- Sort into ascending, descending or alphabetical order
- Say when a bubble sort stops
20 minutes, 7 exam-style questions.