Watch how bubble sort compares adjacent elements and swaps them if they're in the wrong order.
Yellow bars are being compared, green bars are in their final sorted position.