public static function ReportFile::reportCompare in Forena Reports 7.5
Sort compare function for sorting data by category then title.
Parameters
unknown $a:
unknown $b:
Return value
number
File
- src/
File/ ReportFile.php, line 67
Class
Namespace
Drupal\forena\FileCode
public static function reportCompare($a, $b) {
$c = strnatcasecmp($a->cache['category'], $b->cache['category']);
if (!$c) {
$c = strnatcasecmp($a->cache['title'], $b->cache['title']);
}
return $c;
}