• JMap.MapContext.sortListBy

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

    "alphabetic" : list following map context title string "lastUpdate" : list following map context last update

    Parameters

    Returns void

    Throws

    if sortBy param is not correct

    Example

    // sort the list alphabetically
    JMap.MapContext.sortListBy("alphabetic")

    // sort the list with the last upadte date
    JMap.MapContext.sortListBy("lastUpdate")