Aspose::Cells::Pivot::PivotField::SortBy method

PivotField::SortBy(SortOrder) method

Sorts this pivot field.

void Aspose::Cells::Pivot::PivotField::SortBy(SortOrder sortType)
ParameterTypeDescription
sortTypeSortOrderThe type of sorting this field.

See Also

PivotField::SortBy(SortOrder, int32_t) method

Sorts this pivot field.

Deprecated

Use PivotField.SortBy(SortOrder, int,string) method or PivotField.IsAutoSort property instead.

void Aspose::Cells::Pivot::PivotField::SortBy(SortOrder sortType, int32_t fieldSortedBy)
ParameterTypeDescription
sortTypeSortOrderThe type of sorting this field.
fieldSortedByint32_tThe index of pivot field sorted by. -1 means sorting by data labels of this field, others mean the index of data field sorted by.

Remarks

NOTE: This property is now obsolete. Instead, please use PivotField.SortBy(SortOrder, int,string) method or PivotField.IsAutoSort property instead. This method will be removed 12 months later since September 2026. Aspose apologizes for any inconvenience you may have experienced.

See Also

PivotField::SortBy(SortOrder, int32_t, PivotLineType, const U16String&) method

Sorts this pivot field.

Deprecated

Use PivotField.SortBy(SortOrder, int,string) method instead.

void Aspose::Cells::Pivot::PivotField::SortBy(SortOrder sortType, int32_t fieldSortedBy, PivotLineType dataType, const U16String &cellName)
ParameterTypeDescription
sortTypeSortOrderThe type of sorting this field.
fieldSortedByint32_tThe 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.
cellNameconst U16String&Sort by values in the row or column

Remarks

NOTE: This property is now obsolete. Instead, please use PivotField.SortBy(SortOrder, int,string) method instead. This method will be removed 12 months later since September 2026. Aspose apologizes for any inconvenience you may have experienced.

See Also

PivotField::SortBy(SortOrder, int32_t, PivotLineType, const char16_t*) method

Sorts this pivot field.

Deprecated

Use PivotField.SortBy(SortOrder, int,string) method instead.

void Aspose::Cells::Pivot::PivotField::SortBy(SortOrder sortType, int32_t fieldSortedBy, PivotLineType dataType, const char16_t *cellName)
ParameterTypeDescription
sortTypeSortOrderThe type of sorting this field.
fieldSortedByint32_tThe 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.
cellNameconst char16_t*Sort by values in the row or column

Remarks

NOTE: This property is now obsolete. Instead, please use PivotField.SortBy(SortOrder, int,string) method instead. This method will be removed 12 months later since September 2026. Aspose apologizes for any inconvenience you may have experienced.

See Also

PivotField::SortBy(SortOrder, int32_t, const U16String&) method

Sorts this pivot field.

void Aspose::Cells::Pivot::PivotField::SortBy(SortOrder sortType, int32_t fieldSortedBy, const U16String &cellName)
ParameterTypeDescription
sortTypeSortOrderThe type of sorting this field.
fieldSortedByint32_tThe index of pivot field sorted by. -1 means sorting by data labels of this field, others mean the index of data field sorted by.
cellNameconst U16String&Sort by values in the row or column. If Null, group by total of the field, else group by values in selected column or row.

See Also

PivotField::SortBy(SortOrder, int32_t, const char16_t*) method

Sorts this pivot field.

void Aspose::Cells::Pivot::PivotField::SortBy(SortOrder sortType, int32_t fieldSortedBy, const char16_t *cellName)
ParameterTypeDescription
sortTypeSortOrderThe type of sorting this field.
fieldSortedByint32_tThe index of pivot field sorted by. -1 means sorting by data labels of this field, others mean the index of data field sorted by.
cellNameconst char16_t*Sort by values in the row or column. If Null, group by total of the field, else group by values in selected column or row.

See Also