Sorting Lab

Bubble Sort

Watch adjacent comparisons float the largest value to the top through repeated passes.

Dataset

Comma or space separated numbers.

Handy for showing why already sorted inputs finish early.

Step-by-step reasoning

Trace each adjacent comparison and swap event.

  1. Run the algorithm to populate steps.