Let's look at a simple example. We start by taking the first two values and comparing them.
Since 5 is greater than 3, we swap their places.
5
3