cancel
Showing results for 
Search instead for 
Did you mean: 

Ascending and Descending

former_member648499
Discoverer
0 Kudos
732

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

Accepted Solutions (1)

Accepted Solutions (1)

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.

Answers (1)

Answers (1)

Ruthvik_Chowdary
Active Contributor

Hi Shiva,

You can Sort only one either Ascending or Descending, But not both in Fiori UI