First sort

The very first sort algorithm.
Interesting what is variable "i" doing here?