SortOrder

SortOrder enumeration

Represents sort order for the data range.

Values

NameValueDescription
Ascending0Sorts data in ascending order
Descending1Sorts data in descending order
Natural2Keeps original data order without sorting. Only applies to some special scenarios such as PivotTable.