Add an interactive sort button to a column header to enable a user to click the column header and sort the parent group rows in a table or matrix by the value displayed in that column. The order of child groups remains unchanged.
To add an interactive sort button to a column header to sort groups
In a table or matrix in report design view, right-click the text box in the column header for the group to which you want to add an interactive sort button, and then click Text Box Properties.
Click Interactive Sorting.
Select Enable interactive sorting on this text box.
In Choose what to sort, click Groups.
From the drop-down list, select the name of the group that you are sorting. For groups based on simple group expressions, the Sort by value is populated with group expression.
For complex group expressions, manually set the Sort by expression to the same value as the group expression.
To verify the sort action, click Run to preview the report, and then click the interactive sort buttons.