Sorting Lab
Animated sorting visualizer: bubble, insertion, selection, quick, merge, and heap sort with run, step, and speed controls.
About this tool
Animated sorting lab. Each Step advances exactly one comparison or write. Stop pauses the same run, so the next Step continues from that operation. The counters distinguish comparisons from writes; a swap writes two positions. Merge sort retains the order of equal values.
Algorithms
Bubble, insertion, selection, quicksort (Lomuto), merge sort, and heap sort.