You are here

public static function DataFileSystem::blockCompare in Forena Reports 8

Sort compare function for sorting data by category then title.

Parameters

string $a:

string $b:

Return value

number

File

src/File/DataFileSystem.php, line 65

Class

DataFileSystem

Namespace

Drupal\forena\File

Code

public static function blockCompare($a, $b) {
  $c = strnatcasecmp($a, $b);
  return $c;
}