[]
Initializes a new command to sort the IPivotField in the IPivotTable.
public static Command SortField(IPivotTable pivotTable, int pivotFieldIndex, FieldSortType sortOrder, int dataFieldPosition = -1, SortType sortType = SortType.SortLabels)
Public Shared Function SortField(pivotTable As IPivotTable, pivotFieldIndex As Integer, sortOrder As FieldSortType, Optional dataFieldPosition As Integer = -1, Optional sortType As SortType = SortType.SortLabels) As Command
| Type | Name | Description |
|---|---|---|
| IPivotTable | pivotTable | The IPivotTable object. |
| int | pivotFieldIndex | |
| FieldSortType | sortOrder | |
| int | dataFieldPosition | |
| SortType | sortType |
| Type | Description |
|---|---|
| Command | A sort command. |