The spectator and the magician each order a suit from A to K. Now the spectator can experiment with his cards, he can change the position of consecutive cards. He can change other cards position; he can also turn the cards he wants face up.
The magician will do exactly the same with his cards. once done, the spectator will keep the magician's cards in an envelope with the words time machine written on it. After a few seconds, the same spectator draws the cards and they are shown to be in the perfect initial order!
Now the spectator does the same with his cards. and exactly the same thing happens. When he draws them, the cards are in perfect order!