Need feedback on solution for sorting problem - insertion sort

I remember our discussion couple of months ago:
here goes a link
After your explanation I thought that it’s better to use just variables for loop conditions - did I misunderstand something back then?