public int CompareTo(SymbolSpace other) { if (IsValid && other.IsValid) { return(_symbol.CompareTo(other._symbol)); } return(IsValid.CompareTo(other.IsValid)); }