## PivotFieldSortSetting::SetFieldIndex method


Represents the index of the field sorted by. -1 means sorting the [PivotField](../../pivotfield/) by the labels,others means sorting by the data field.


>Deprecated
>
>Use PivotFieldSortSetting.SortBy property instead. 
```cpp
void Aspose::Cells::Pivot::PivotFieldSortSetting::SetFieldIndex(int32_t value)
```

## Remarks


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


## See Also

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