You are here

public static function RendererBase::weight_sort_comp in Forena Reports 7.5

File

src/Renderer/RendererBase.php, line 1047
FrxRenderer.php Base class for Frx custom Renderer @author davidmetzler

Class

RendererBase

Namespace

Drupal\forena\Renderer

Code

public static function weight_sort_comp($a, $b) {
  if ($a['weight'] == $b['weight']) {
    return 0;
  }
  return $a['weight'] < $b['weight'] ? -1 : 1;
}