Пример #1
0
            ///<summary>
            ///Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
            ///</summary>
            ///
            ///<returns>
            ///Value Condition Less than zerox is less than y.Zerox equals y.Greater than zerox is greater than y.
            ///</returns>
            ///
            ///<param name="y">The second object to compare.</param>
            ///<param name="x">The first object to compare.</param>
            public int Compare(ListViewItem x, ListViewItem y)
            {
                int ataCompareResult = ComparerMethods.ATACompare(x.Text, y.Text);

                if (ataCompareResult == 0)
                {
                    return(sortMultiplier * CheckColumnIndexQueue(columnIndexQueue.Count - 1, x, y));
                }
                return(ataSortMultiplier * (ataCompareResult));
            }
Пример #2
0
 public int Compare(ListViewItem x, ListViewItem y)
 {
     return(ComparerMethods.ATACompare(x.Text, y.Text));
 }