This is the worst but most interesting way to sort things out.
The steps to do this sort is to do these things
-1 Randomly Shuffle cards ( throw it around XD )
-2 Pick up a card, keep that card to be replaced by second card. ( The card kept in hand is considered as first card )
-3 Pick up another card, and if the first card is smaller than the second card, set first card as a finished deck.
-4 Repeat 2 and 3 until no more cards for second card, then set first card on deck. Finished.
-4 If second card is smaller then do Step 1.