[]
Establishes automatic field-sorting rules for PivotTable reports.
void AutoSort(SortOrder? order, string field = null)
Sub AutoSort(order As SortOrder?, Optional field As String = Nothing)
| Type | Name | Description |
|---|---|---|
| SortOrder? | order | Required SortOrder. The sort order. |
| string | field | The name of the sort key field. You must specify the unique name (as returned from the PivotField.SourceName property) and not the displayed name. |