it's bubble sort without the early return.
[edit: my bad, it's not bubble sort]
Pull up the pseudocode for bubble sort and compare it.
Pull up the pseudocode for bubble sort and compare it.