added card sorting functionality to scorecounter