In bubble sort, we compare adjacent elements and whenever we get a pair that is out of order, we swap them. Learn more about this sorting way