Pivot samples
Configuration
Headers sort direction
You can set the sorting direction for columns and rows.
Check documentation:
Configuring Fields