If item b is greater than item a and b is in a less position than a then they swap (they are next to each other), but the gap decreases.