Take a card from the stack, put it in a new pile
take another card go through pile until the next card is higher
then put the new card before that card
repeat until you’re done