Bubble Sort
Bubble sort is a sorting algorithm that always swaps consecutive elements in the array.
Idea is that bubble sort is done in rounds. After each round, the biggest number is correctly placed at the end of the array.
This seems kind of similar to Insertion Sort, where you swap elements adjacent to each other.
C++ implementation