public int CompareTo(ItemResource other)
{
if (Sorting.Column == 2)
{
return Cost.CompareTo(other.Cost);
}
else if (Sorting.Column == 3)
{
return AppropriateLevel.CompareTo(other.AppropriateLevel);
}
else
{
return LocalizedName.CompareTo(other.LocalizedName);
}
}
}