public int CompareTo(Tag other) { if (other == null) { return(1); } int result = 0; result = m_Checked.CompareTo(other.m_Checked); if (result != 0) { return(result); } result = m_Enabled.CompareTo(other.m_Enabled); if (result != 0) { return(result); } result = m_Visible.CompareTo(other.m_Visible); if (result != 0) { return(result); } result = m_ValueSelect1.CompareTo(other.m_ValueSelect1); if (result != 0) { return(result); } result = m_ValueSelect2.CompareTo(other.m_ValueSelect2); if (result != 0) { return(result); } result = ChannelId.CompareTo(other.ChannelId); if (result != 0) { return(result); } result = DataBlockId.CompareTo(other.DataBlockId); if (result != 0) { return(result); } result = DeviceId.CompareTo(other.DeviceId); if (result != 0) { return(result); } result = DataType.CompareTo(other.DataType); if (result != 0) { return(result); } result = Address.CompareTo(other.Address); if (result != 0) { return(result); } result = TagName.CompareTo(other.TagName); if (result != 0) { return(result); } result = TagId.CompareTo(other.TagId); if (result != 0) { return(result); } result = Timestamp.CompareTo(other.Timestamp); if (result != 0) { return(result); } result = Description.CompareTo(other.Description); if (result != 0) { return(result); } return(result); }