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); }
public void ApplySort(ListSortDescriptionCollection sorts) { this._sortProperty = null; this._sortDescriptions = sorts; SortComparer <T> comparer = new SortComparer <T>(sorts); this.ApplySortInternal(comparer); }
public void Sort(string orderBy) { SortComparer <T> comparer = new SortComparer <T>(orderBy); this.ApplySortInternal(new Comparison <T>(comparer.Compare)); }