Watch order take shape.
Follow each comparison, track every swap, and discover how different algorithms organize the same values.
THE SORTING FLOOR
Ascending orderBubble sort
UnsortedComparingSwappingPivot / candidateFinal position
Height = value · labels below the bars are array indices · equal values retain their own identity
Adjust during playback. Up to 200 steps/s; fast playback combines steps per frame.
Ready
VALUES12
COMPARISONS0
SWAPS0
FINAL POSITIONS0 / 12
The step behind the movement.
Highlighted pseudocode corresponds to the current operation. Counters include value comparisons and actual swaps, not self-swaps or loop checks.
Best time
Average / worst time
Stable in this implementation?
Switch algorithms to reuse the original array for a fair comparison. Animation duration is not an algorithm benchmark.
Visualization references: VisuAlgo and USF comparison sorting.