/// <inheritdoc/> public virtual int CompareTo(MultiNodeMessage other) { var tc = TimeStamp.CompareTo(other.TimeStamp); if (tc != 0) { return(tc); } var m = string.Compare(Message, other.Message, StringComparison.Ordinal); if (m != 0) { return(m); } var ni = NodeIndex.CompareTo(other.NodeIndex); if (ni != 0) { return(ni); } var nr = string.Compare(NodeRole, other.NodeRole, StringComparison.Ordinal); if (nr != 0) { return(nr); } return(0); }