Sorting visualizer

Watch a string sort itself.

Type any word, pick an algorithm, and step through every comparison and swap. Five classic sorts, the same characters, one fluid stage.

Compare S and O

0 / 43
Speed
0
Comparisons
0
Swaps / moves
7
Characters

Up to 16 non-space characters. Sorting is case-insensitive.

Algorithm

Repeatedly swaps adjacent characters that are out of order.

Best
O(n)
Average
O(n²)
Worst
O(n²)
Space
O(1)
ComparingMovingPivotSorted