Exemplo n.º 1
0
 function sortbyonlinestatus($a, $b)
 {
     if ($a['online_b'] && $b['online_b'] || !$a['online_b'] && !$b['online_b']) {
         return \NERDZ\Core\Utils::sortByUsername($a, $b);
     }
     return $b['online_b'] ? 1 : -1;
 }