public static function sortSize($a, $b)
{
$dirs = self::_sortDirs($a, $b);
if ($dirs) {
return $dirs;
}
if ($a['size'] > $b['size']) {
return $GLOBALS['prefs']->getValue('sortdir') ? -1 : 1;
} elseif ($a['size'] === $b['size']) {
return 0;
} else {
return $GLOBALS['prefs']->getValue('sortdir') ? 1 : -1;
}
}