public virtual int CompareTo(object obj) { StateRecord other = obj as StateRecord; if (other == null) return 1; else return m_historianID.CompareTo(other.HistorianID); }