Six numbers are sorted using bubble sort, with each pass comparing neighboring values and swapping them when the left is larger, gradually pushing the largest remaining value to its correct position on the right. A running swap counter tracks total operations, and the animation highlights how the algorithm detects a pass with zero swaps to exit early. Useful for students learning basic sorting algorithms and time complexity intuition.
16:9 · Preview before teaching · automatic layout checks do not establish subject accuracy
Six values sorted by bubble sort: each pass compares neighbours and swaps when the left is bigger, floating the largest to the right; swap counter and early exit when a pass makes no swaps.