7576777879808182838485
CardGroup afterGroup = iter.next(); if( !afterGroup.hasChildren() && afterGroup != deck.sideboard && afterGroup != deck.main) iter.remove(); else afterGroup.sort( comparator() ); } deck.doUpdate(true); deck.update(false, true);