Exemple #1
0
            /// <summary>
            /// compare the profile information.
            /// </summary>
            /// <param name="other">The other profile info instance..</param>
            /// <returns>the comparison result.</returns>
            public int CompareTo(ProfileInfo other)
            {
                var comp = Started.CompareTo(other.Started);

                if (comp == 0)
                {
                    comp = Id.CompareTo(other.Id);
                }
                return(comp);
            }
Exemple #2
0
        public int CompareTo(PersonTableItemViewModel other)
        {
            if (Started != other.Started)
            {
                return(-Started.CompareTo(other.Started));
            }

            if (BroughtOn != other.BroughtOn)
            {
                return(-BroughtOn.CompareTo(other.BroughtOn));
            }

            return(PersonViewModel.VersionEntity.Surname.CompareTo(other.PersonViewModel.VersionEntity.Surname));
        }
Exemple #3
0
 public int CompareTo(HistoryEntry other)
 {
     return(Started.CompareTo(other.Started));
 }
 public int CompareTo(Tournament other)
 {
     return(Started.CompareTo(other.Started));
 }