Class SortingExtensions
Extension methods providing fluent sort builders on Range.
Inherited Members
Namespace: DRIT.Spreadsheet
Assembly: DRIT.Spreadsheet.dll
Syntax
public static class SortingExtensions
Methods
Sort(Range, bool)
Starts a fluent sort on the range, sorting by the first column in the specified order.
Declaration
public static SortBuilder Sort(this Range range, bool ascending = true)
Parameters
| Type | Name | Description |
|---|---|---|
| Range | range | The range to sort. |
| bool | ascending | When true the first column is sorted ascending; otherwise descending. Default is true. |
Returns
| Type | Description |
|---|---|
| SortBuilder | A SortBuilder for chaining additional sort levels and applying the sort. |