Adding Dynamic Order By to a report
This example shows how to add Dynamic Order By to sort report results in a list by the Full Name, Team, or Status columns. When the report is run, the results are sorted by the column and direction based on the parameters selected by the user.
When the report is run, you are prompted to select the sort column and direction. If you choose to sort by TEAMS in Ascending order, the OrderUp column is populated with Team data and sorted in ascending order. Because this column is sorted, the entire list is also sorted based on Team. Every row in the OrderDown column is filled with a placeholder string (NA), so the OrderDown column does not affect the results of the data.