just press space when the game asks you to. https://en.wikipedia.org/wiki/Bubble_sort
it takes 2 numbers, compares them, and if a>b, it swaps them. then it moves on to the next number.