You are here

public function RendererBase::weight_sort in Forena Reports 7.5

Sort a column list by weight.

Parameters

unknown $columns:

6 calls to RendererBase::weight_sort()
FrxCrosstab::configForm in src/Renderer/FrxCrosstab.php
Crosstab configuration form.
FrxFieldTable::configForm in src/Renderer/FrxFieldTable.php
Template configuration form @parmater $configuration form
FrxFieldTable::configValidate in src/Renderer/FrxFieldTable.php
Default configuration validator. Simply validates header and footer attributes.
FrxSVGGraph::configForm in src/Renderer/FrxSVGGraph.php
Returns the section Enter description here ...
FrxTable::configForm in src/Renderer/FrxTable.php
Returns the section Enter description here ...

... See full list

File

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

Class

RendererBase

Namespace

Drupal\forena\Renderer

Code

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