Insertion sort is a very simple, stable, in-place sorting algorithm. It performs well on small sequences but it is much less efficient on large lists.
At every step, the algorithms considers the i-th element of the given sequence, moving it to the left until it is in the correct position.
Graphica...