Skip to content

Bubble sort

ordering

Level 1 of 3

Also called Sinking sort.

Walk along the row comparing each neighbouring pair, and swap any pair standing the wrong way round. Each walk carries the biggest number left to the end, until a walk swaps nothing.

comparisons
0
swaps
0

step 1 of 1

Examples

Whole numbers from 1 to 99, between 2 and 12 of them, separated by commas or spaces.