Booms and busts are a recurring feature of modern economics, but when an asset's value becomes overinflated, a boom quickly becomes a bubble.
Start at the beginning of the list. Compare the first value in the list with the next one up. If the first value is bigger, swap the positions of the two values. Move to the second value in the list.