We have updated Flexmonster Software License Agreement, effective as of September 30, 2024. Learn more about what’s changed.
All documentation
  • API Reference for older versions
  • setSort

    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.

    Parameters

    Parameter/TypeDescription
    uniqueName
    String
    The field's unique name.
    sortType
    String
    The following sorting types can be applied: "asc", "desc", or "unsorted".

    Example

    pivot.setSort("Category", "desc");

    Try the example on JSFiddle.

    See also

    getSort
    sortingMethod
    sortValues
    Sorting