Added sorting after rerandomizing a few cards