PivotFieldSortSetting

PivotFieldSortSetting class

Represents the setting of sorting pivot fields.

class PivotFieldSortSetting;

Properties

PropertyTypeDescription
sortTypeSortOrderReadonly. Represents the SortOrder.
isSortByLabelsbooleanReadonly. Indicates whether sorting the field by itself or data field.
fieldIndexnumberReadonly. Represents the index of the field sorted by. -1 means sorting the PivotField by the labels,others means sorting by the data field.
lineTypeSortedByPivotLineTypeReadonly. The pivot line type sorted by.
isSimpleSortbooleanReadonly. Indicates whether a simple data sort operation will be applied.
cellstringReadonly. Sorts by the values in which row or column.

sortType

Readonly. Represents the SortOrder.

sortType : SortOrder;

isSortByLabels

Readonly. Indicates whether sorting the field by itself or data field.

isSortByLabels : boolean;

fieldIndex

Readonly. Represents the index of the field sorted by. -1 means sorting the PivotField by the labels,others means sorting by the data field.

fieldIndex : number;

lineTypeSortedBy

Readonly. The pivot line type sorted by.

lineTypeSortedBy : PivotLineType;

Remarks

Only works when not sorting this field by labels.

isSimpleSort

Readonly. Indicates whether a simple data sort operation will be applied.

isSimpleSort : boolean;

Remarks

The default value is true.

cell

Readonly. Sorts by the values in which row or column.

cell : string;