Esempio n. 1
0
        public void SortByKeys(Comparison <TKey> keyComparison)
        {
            var comparer = new Comparer2 <TItem>((x, y) => keyComparison(GetKeyForItem(x), GetKeyForItem(y)));

            Sort(comparer);
        }
Esempio n. 2
0
        public void Sort(Comparison <TItem> comparison)
        {
            var newComparer = new Comparer2 <TItem>((x, y) => comparison(x, y));

            Sort(newComparer);
        }
Esempio n. 3
0
        public void SortByKeys(IComparer <TKey> keyComparer)
        {
            var comparer = new Comparer2 <TItem>((x, y) => keyComparer.Compare(GetKeyForItem(x), GetKeyForItem(y)));

            Sort(comparer);
        }