setSort(uniqueName: String, sortType: String)
[starting from version: 1.4]
Sets the sort type to the specified field. Learn more about sorting in this guide: Sorting.
"asc"
"desc"
"unsorted"
pivot.setSort("Category", "desc");
Try the example on JSFiddle.
getSortsortingMethodsortValuesSorting
In this guide