ALFA.Shared.ItemResource.CompareTo C# (CSharp) Method

CompareTo() public method

public CompareTo ( ItemResource other ) : int
other ItemResource
return int
        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);
            }
        }
    }

Same methods

ItemResource::CompareTo ( IListBoxItem other ) : int