add card-man grouping and sorting in groups