Skip to content

Counting sort

ordering

Level 2 of 3

For small whole numbers, never compare two of them. Count how many there are of each value, add the counts up into running totals, and the totals say exactly where every number goes.

the row

tallies, then running totals

counted
0
totals added
0
placed
0

step 1 of 1

Examples

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