Fixed insertion sort.