The simplest and slowest sort in use.
The algorithm starts at the beginning of the list and works it way to the end, comparing each element in the list with the one after it. The elements are swapped if they are out of order.
This process is repeated until a pass is made all the way through the list without swapping any elements.
This causes larger elements to “sink" to the end of the list and smaller elements “bubble" to the beginning of the list.