All documentation
  • API Reference for older versions
  • getSort

    getSort(uniqueName: String): String

    [starting from version: 1.4]

    Returns the sort type which is applied to a field.

    Parameters

    Parameter/TypeDescription
    uniqueName
    String
    The field's unique name.

    Returns

    One of the following sort types: 'asc', 'desc', or 'unsorted'.

    Example

    pivot.getSort("Category");

    Open the example on JSFiddle.

    See also

    setSort
    sortingMethod
    sortValues
    Sorting