Inheritance: IListBoxItem
        public int CompareTo(IListBoxItem other)
        {
            TrapResource trap = other as TrapResource;

            if (trap != null)
            {
                return(CompareTo(trap));
            }
            return(0);
        }
 public int CompareTo(TrapResource other)
 {
     if (Sorting.Column == 2)
     {
         return(ChallengeRating.CompareTo(other.ChallengeRating));
     }
     else if (Sorting.Column == 3)
     {
         return(ChallengeRating.CompareTo(other.ChallengeRating));
     }
     else
     {
         return(DisplayName.CompareTo(other.DisplayName));
     }
 }
 public int CompareTo(TrapResource other)
 {
     if (Sorting.Column == 2)
     {
         return ChallengeRating.CompareTo(other.ChallengeRating);
     }
     else if (Sorting.Column == 3)
     {
         return ChallengeRating.CompareTo(other.ChallengeRating);
     }
     else
     {
         return DisplayName.CompareTo(other.DisplayName);
     }
 }