Example #1
0
        protected override void ApplySortCore(PropertyDescriptor prop, ListSortDirection direction)
        {
            this._sortDirection = direction;
            this._sortProperty  = prop;
            SortComparer <T> comparer = new SortComparer <T>(prop, direction);

            this.ApplySortInternal(comparer);
        }
Example #2
0
        public void ApplySort(ListSortDescriptionCollection sorts)
        {
            this._sortProperty     = null;
            this._sortDescriptions = sorts;
            SortComparer <T> comparer = new SortComparer <T>(sorts);

            this.ApplySortInternal(comparer);
        }
Example #3
0
        public void Sort(string orderBy)
        {
            SortComparer <T> comparer = new SortComparer <T>(orderBy);

            this.ApplySortInternal(new Comparison <T>(comparer.Compare));
        }