Bubble Sort

For the value of element n in a collection,

if (n - 1).value > n.value

then n.value = (n - 1).value

(n - 1).value = n.value

Your browser does not support HTML5 :(