cancel
Showing results for 
Search instead for 
Did you mean: 

Ascending and Descending

former_member648499
Discoverer
0 Kudos
731

In ui5 how to sorting both Ascending and Descending in one sorter function?

View Entire Topic
saurabh_vakil
Active Contributor

Check the example given here - Sample: Table - View Settings & Context Menu. The sort dialog shows both options for sorting the data - ascending and descending. This is handled in the controller function handleSortDialogConfirm. Based on whether user selects Ascending/Descending under Sort Order in the sort dialog, the parameter bDescending reads it as true/false and sorts accordingly.