Insertion Sort Interactive Activity

Build a sorted section from left to right by comparing the current value with the values before it.

Time 0s
Item Being Inserted 0
Comparison 0
Penalty 0s
91
1
35
2
54
3
69
4
64
5
90
6
103
7
48
8
10
9
80
10
New numbers generated. Click Start Activity to begin.

How it works

In insertion sort, the first value starts as the sorted section. The next value is selected and compared with the value immediately to its left. If the selected value is smaller, it moves left by swapping with that value. This continues until the selected value is in the correct position.

Every incorrect answer adds a 5 second penalty to your time. The activity ends automatically when the full list is sorted.