using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Infragistics.Win.UltraWinGrid;

namespace _139970
{
    class Comparer : IComparer
    {
        #region IComparer Members

        public int Compare(object x, object y)
        {
            UltraGridGroupByRow xRow = (UltraGridGroupByRow)x;
            UltraGridGroupByRow yRow = (UltraGridGroupByRow)y;

            decimal xValue = (decimal)xRow.Rows.SummaryValues[0].Value;
            decimal yValue = (decimal)yRow.Rows.SummaryValues[0].Value;
            return decimal.Compare(xValue, yValue);

        }

        #endregion
    }
}
