Bubble Sort

12
1
14
9
12
Algoritmo
Explicación
do
  swapped = falso
  for i = 1 to lastUnsortedIndex - 1
    if left > right
      swap(left, right)
      swapped = true; swapCounter++
while swapped