added card sorting method.
implemented card sorting from player class.