public int CompareTo(IListBoxItem other)
        {
            CreatureResource creature = other as CreatureResource;

            if (creature != null)
            {
                return(CompareTo(creature));
            }
            return(0);
        }
 public int CompareTo(CreatureResource other)
 {
     if (Sorting.Column == 2)
     {
         return(FactionID.CompareTo(other.FactionID));
     }
     else if (Sorting.Column == 3)
     {
         return(ChallengeRating.CompareTo(other.ChallengeRating));
     }
     else
     {
         if (FirstName == other.FirstName)
         {
             return(LastName.CompareTo(other.LastName));
         }
         return(FirstName.CompareTo(other.FirstName));
     }
 }
 public int CompareTo(CreatureResource other)
 {
     if (Sorting.Column == 2)
     {
         return FactionID.CompareTo(other.FactionID);
     }
     else if (Sorting.Column == 3)
     {
         return ChallengeRating.CompareTo(other.ChallengeRating);
     }
     else
     {
         if (FirstName == other.FirstName)
         {
             return LastName.CompareTo(other.LastName);
         }
         return FirstName.CompareTo(other.FirstName);
     }
 }