You are here

public function RendererBase::weight_sort in Forena Reports 8

Sort a column list by weight.

Parameters

array $entries: Entries to sort.

File

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

Class

RendererBase
Crosstab Renderer

Namespace

Drupal\forena\FrxPlugin\Renderer

Code

public function weight_sort(&$entries) {
  if ($entries) {
    uasort($entries, 'FrxRenderer::weight_sort_comp');
  }
}