WarUI

Sorting and Filtering in Pivot Mode

GRID-A18-F08P1baselinePlanned

Users can sort row groups by label or by any result column value, including totals. Filters apply to source fields before aggregation. A separate value filter, such as 'revenue greater than 10k', applies to the aggregated groups after aggregation. Docs show the difference between the two filter stages.

Planned. This page shows the specification from issue #198. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

Rows: Country. Columns: Year. Value: sum of Revenue. Sorted by country name.

Expected behavior

Sorting by a value column reorders groups within each parent level. The source filter changes every number. The value filter hides whole groups but leaves the other groups' numbers unchanged. The demo explains whether grand totals include or exclude hidden groups, based on the 'totalsRespectValueFilter' setting.

Planned API surface

pivot.sortBysetPivotSort()pivot.sourceFilterpivot.valueFiltersetPivotValueFilter()onPivotSortChange

Acceptance criteria

  • Sorting by a value column orders siblings only and keeps the hierarchy. (pending)
  • The source filter applies before aggregation. (pending)
  • The value filter applies after aggregation at the configured level. (pending)
  • Total rows are never sorted among data rows. (pending)
  • Sort state is included in the pivot state export. (pending)