Introduction - If you have any usage issues, please Google them yourself
Bubble sorting repeatedly visits the sequence to be sorted, comparing two elements at once, exchanging them if they are in the wrong order. The sequence of visits is repeated until no more exchanges are required, ie the sequence has been sorted.