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);
}
}
}