## PivotField::GetAutoSortField method


Represents the index of field which is auto sorted. -1 means [PivotField](../) itself,others means the position of the data fields.


>Deprecated
>
>Use PivotField.SortSetting.SortBy property or PivotField.SortBy() method instead. 
```cpp
int32_t Aspose::Cells::Pivot::PivotField::GetAutoSortField()
```

## Remarks


NOTE: This property is now obsolete. Instead, please use PivotField.SortSetting.SortBy property or [PivotField.SortBy()](../sortby/) method 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 [PivotField](../)
* Namespace [Aspose::Cells::Pivot](../../)
* Library [Aspose.Cells for C++](../../../)
