## PivotFieldSortSetting::SetSortBy method


Represents the index of the field sorted by. A value of -1 indicates sorting by the pivot item's own values. When greater than or equal to zero, it represents the index of data field in the data region.

```cpp
void Aspose::Cells::Pivot::PivotFieldSortSetting::SetSortBy(int32_t value)
```

## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Class [PivotFieldSortSetting](../)
* Namespace [Aspose::Cells::Pivot](../../)
* Library [Aspose.Cells for C++](../../../)
