You are here

public function FrxReport::sort in Forena Reports 7.4

Sort the current data context if it is an array.

Parameters

$teng Token replacement engine to use for sort:

unknown $sort:

string $compare_type:

File

./FrxReport.inc, line 811
Basic report provider. Controls the rendering of the report.

Class

FrxReport

Code

public function sort(&$data, $sort, $compare_type = '') {
  $this
    ->setSort($sort, $compare_type);
  if (is_array($data)) {
    uasort($data, array(
      $this,
      'compareFunction',
    ));
  }
}