method fSort documentation in bbn\User\Permissions
function($a, $b)
{
if (substr($a['code'], -1) === '/') {
$a['code'] = '00'.$a['code'];
}
if (substr($b['code'], -1) === '/') {
$b['code'] = '00'.$b['code'];
}
$a = str_replace('.', '0', str_replace('_', '1', Str::changeCase($a['code'], 'lower')));
$b = str_replace('.', '0', str_replace('_', '1', Str::changeCase($b['code'], 'lower')));
return strcmp($a, $b);
}
BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2025
BBN Solutions