public override int CompareTo(DataViewModelAppBase <JewelModel> other)
        {
            int idDiff = DataObject().RarityTierId - other.DataObject().RarityTierId;

            return(idDiff != 0 ? idDiff : (DataObject().BaseDamage - other.DataObject().BaseDamage));
        }
示例#2
0
        public override int CompareTo(DataViewModelAppBase <Jewel> other)
        {
            int?idDiff = String.Compare(DataObject().JewelModel?.Description, other.DataObject().JewelModel?.Description, StringComparison.Ordinal);

            return((idDiff != null && idDiff.Value != 0) ? idDiff.Value : ((DataObject().BaseDamage - other.DataObject().BaseDamage) > 0 ? 1 : -1));
        }