Replace ‘measureId’ with the technical id of the measure object you want to sort by
Table_1.sortByValue(
{ "@MeasureDimension": measureId },
SortOrder.Descending, // use .Ascending to reverse the sort order
Direction.Vertical
);
Code language: JavaScript (javascript)
