yes, it might be a bit difficult to follow, but this should a proper implimentation of insertion sort.
should work 100% :)