Welcome to the most inefficient sorting algorithm in all of computing. Here's how it works:
Imagine your sock drawer. It's a mess, right?
Insertion sort is like a very polite and considerate approach. You take the next item, compare it with all the others, and say "oh, this one's bigger/smaller than that one, let me move it there."
Step 1: Get the next sock A terrible example of when it all goes wrong Why you should never, ever use insertion sort in production code