You are here

function openlayers_plus_layer_compare in OpenLayers Plus 7.2

Same name and namespace in other branches
  1. 7.3 openlayers_plus.module \openlayers_plus_layer_compare()

Openlayers_plus_layer_compare().

1 string reference to 'openlayers_plus_layer_compare'
openlayers_plus_behavior_legend::render in behaviors/openlayers_plus_behavior_legend.inc
Render.

File

./openlayers_plus.module, line 248
Openlayers_plus module file.

Code

function openlayers_plus_layer_compare($a, $b) {
  if ($a['title'] == $b['title']) {
    return 0;
  }
  return $a['title'] < $b['title'] ? -1 : 1;
}