Swap numbers until they are in order