You are here

public static function RendererBase::weight_sort_comp in Forena Reports 8

File

src/FrxPlugin/Renderer/RendererBase.php, line 1065
FrxRenderer.php Base class for FrxAPI custom Renderer @author davidmetzler

Class

RendererBase
Crosstab Renderer

Namespace

Drupal\forena\FrxPlugin\Renderer

Code

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