Insert sort

About the algorithm:

Goes over unsorted part of the array and inserts each next element into its sorted position in the sorted part


Categories:  Sort   Inefficient  
Best case: Ω(n)
Worst case: O(n^2)

Try the algorithm: