In this tutorial, we'll see a simple sorting algorithm. It will take a sequence of numbers as input, and will return the same numbers in sorted order.
Let's see an example.
Suppose the input is as follows: 5 10 8 7 3 6 12 2 7
Then the desired output is: 2 3 5 6 7 7 8 10 12