Question d’entretien chez Punch (CA)

Sort the array as per the rules of card game using generic method