Let's see.
for i in 1 .. list.len - 1: j = i - 1 while j >= 0 and list[j] > list[j + 1]: swap(list[j], list[j + 1]) j = j - 1