PivotField.SortBy

SortBy(SortOrder, int)

Sorts this pivot field.

public void SortBy(SortOrder sortType, int fieldSortedBy)
ParameterTypeDescription
sortTypeSortOrderThe type of sorting this field.
fieldSortedByInt32The index of pivot field sorted by. -1 means sorting by data labels of this field, others mean the index of data field sorted by.

See Also


SortBy(SortOrder, int, PivotLineType, string)

Sorts this pivot field.

public void SortBy(SortOrder sortType, int fieldSortedBy, PivotLineType dataType, string cellName)
ParameterTypeDescription
sortTypeSortOrderThe type of sorting this field.
fieldSortedByInt32The index of pivot field sorted by. -1 means sorting by data labels of this field, others mean the index of data field sorted by.
dataTypePivotLineTypeThe type of data sorted by.
cellNameStringSort by values in the row or column

See Also