function _openlayers_layers_process_sort in Openlayers 7.2
Callback function for sorting
Parameters
$a: Layer $a
$b: Layer $b
Return value
$a_greater_b Return the weight different - allowing usort to sort
1 string reference to '_openlayers_layers_process_sort'
- _openlayers_layers_process in includes/
openlayers.render.inc - Initialize the layer array into an indexed array of layer objects
File
- includes/
openlayers.render.inc, line 60 - Processing functions for layers and behaviors
Code
function _openlayers_layers_process_sort($a, $b) {
return intval($a->weight - $b->weight);
}