Your list of scores was in the wrong order, so you put it in order.
You never wrote the code that compares two numbers. You never wrote the code that swaps them.
You asked the list to sort itself, and it did.