<?php
-
+
+// small sorting callback function to sort by name
+function sortListByName($a, $b) {
+ return strcasecmp($a['name'], $b['name']);
+}
+
class Miscellaneous extends TModule {
const LICENCE_FILE = 'LICENSE';
$elements[] = array('pathid' => $match['pathid'], 'filenameid' => $match['filenameid'], 'fileid' => $match['fileid'], 'jobid' => $match['jobid'], 'lstat' => $match['lstat'], 'name' => $match['name'], 'type' => 'file');
}
}
+ usort($elements, 'sortListByName');
return $elements;
}