• JMap.MapContext.setListSortDirection

    Changes the map-context list sort direction. The change is persited in local storage.

    "asc" : ascendant sort "desc" : descendant sort

    Parameters

    Returns void

    Throws

    if sortByDirection param is not correct

    Example

    // make the sort ascendant
    JMap.MapContext.setListSortDirection("asc")

    // make the sort descendant
    JMap.MapContext.setListSortDirection("desc")