X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/064843a8e47d8d7c7c5d3c6d110c869053da1c84..de0b7a0925ecd58cf3f5ddecfee159276343ec75:/api/channels.php diff --git a/api/channels.php b/api/channels.php index 13c932a..f8e47ce 100644 --- a/api/channels.php +++ b/api/channels.php @@ -32,7 +32,7 @@ foreach($channels as $channel) function custom_sort($a,$b) { - return ($b["Users"] > $a["Users"]) ? true : false; + return $b["Users"] <=> $a["Users"]; } usort($out, "custom_sort");