WebSocketServer.CardServer.SortCards C# (CSharp) Method

SortCards() public method

Sorts the cards from lowest to highest using the VoteComparer class.
public SortCards ( ) : bool
return bool
        public bool SortCards()
        {
            if (ActiveRound != null && string.IsNullOrWhiteSpace(ActiveRound.Decision) && ActiveRound.Flipped)
            {
                ActiveRound.Votes.Sort(VoteComparer.Default);
                BroadcastGameState();
                return true;
            }
            else
            {
                return false;
            }
        }