You are here

public static function FrxRenderer::weight_sort_comp in Forena Reports 7.4

File

renderers/FrxRenderer.inc, line 1038
FrxRenderer.inc Base class for Frx custom renderers @author davidmetzler

Class

FrxRenderer
@file FrxRenderer.inc Base class for Frx custom renderers @author davidmetzler

Code

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