setSort(uniqueName: String, sortType: String)
[starting from version: 1.4]
Sets the sort type to the specified hierarchy. Learn more about sorting in this guide: Custom sorting.
uniqueName
– String. The hierarchy’s unique name.sortType
– String. The following sorting types can be applied: "asc"
, "desc"
, or "unsorted"
.flexmonster.setSort("Category", "desc");
Try the example on JSFiddle.