A compare function
that will be used for sorting the layers, when sortLayers is true. The function receives both the
L.Layer instances and their names, as in
sortFunction(layerA, layerB, nameA, nameB). By default, it sorts layers alphabetically by their name.
A compare function that will be used for sorting the layers, when
sortLayers
istrue
. The function receives both theL.Layer
instances and their names, as insortFunction(layerA, layerB, nameA, nameB)
. By default, it sorts layers alphabetically by their name.