fixed ordering issue for cards on State model