protected static function sortClientList(Client $a, Client $b)
  {
    if(get_class($a) != get_class($b))
    {
      return 0;

      /* workaround for PHP bug #50688 */
      throw new \ManiaLivePlugins\Standard\TeamSpeak\TeamSpeak3\Adapter\ServerQuery\Exception("invalid parameter", 0x602);
    }

    if(!$a instanceof Client)
    {
      return 0;

      /* workaround for PHP bug #50688 */
      throw new \ManiaLivePlugins\Standard\TeamSpeak\TeamSpeak3\Adapter\ServerQuery\Exception("convert error", 0x604);
    }

    if($a->getProperty("client_talk_power", 0) != $b->getProperty("client_talk_power", 0))
    {
      return ($a->getProperty("client_talk_power", 0) > $b->getProperty("client_talk_power", 0)) ? -1 : 1;
    }

    if($a->getProperty("client_is_talker", 0) != $b->getProperty("client_is_talker", 0))
    {
      return ($a->getProperty("client_is_talker", 0) > $b->getProperty("client_is_talker", 0)) ? -1 : 1;
    }

    return strcmp(strtolower($a["client_nickname"]), strtolower($b["client_nickname"]));
  }
protected static function sortClientList(Client $a, Client $b)
  {
    if(get_class($a) != get_class($b))
    {
      return 0;

      /* workaround for PHP bug #50688 */
      throw new \ManiaLivePlugins\Standard\TeamSpeak\TeamSpeak3\Adapter\ServerQuery\Exception("invalid parameter", 0x602);
    }

    if(!$a instanceof Client)
    {
      return 0;

      /* workaround for PHP bug #50688 */
      throw new \ManiaLivePlugins\Standard\TeamSpeak\TeamSpeak3\Adapter\ServerQuery\Exception("convert error", 0x604);
    }

    if($a->getProperty("client_talk_power", 0) != $b->getProperty("client_talk_power", 0))
    {
      return ($a->getProperty("client_talk_power", 0) > $b->getProperty("client_talk_power", 0)) ? -1 : 1;
    }

    if($a->getProperty("client_is_talker", 0) != $b->getProperty("client_is_talker", 0))
    {
      return ($a->getProperty("client_is_talker", 0) > $b->getProperty("client_is_talker", 0)) ? -1 : 1;
    }

    return strcmp(strtolower($a["client_nickname"]), strtolower($b["client_nickname"]));
  }
protected static function sortClientList ( Client $ a , Client $ b ) { if ( get_class ( $ a ) != get_class ( $ b ) ) { return 0 ; /* workaround for PHP bug #50688 */ throw new \ ManiaLivePlugins \ Standard \ TeamSpeak \ TeamSpeak3 \ Adapter \ ServerQuery \ Exception ( "invalid parameter" , 0x602 ) ; } if ( ! $ a instanceof Client ) { return 0 ; /* workaround for PHP bug #50688 */ throw new \ ManiaLivePlugins \ Standard \ TeamSpeak \ TeamSpeak3 \ Adapter \ ServerQuery \ Exception ( "convert error" , 0x604 ) ; } if ( $ a -> getProperty ( "client_talk_power" , 0 ) != $ b -> getProperty ( "client_talk_power" , 0 ) ) { return ( $ a -> getProperty ( "client_talk_power" , 0 ) > $ b -> getProperty ( "client_talk_power" , 0 ) ) ? - 1 : 1 ; } if ( $ a -> getProperty ( "client_is_talker" , 0 ) != $ b -> getProperty ( "client_is_talker" , 0 ) ) { return ( $ a -> getProperty ( "client_is_talker" , 0 ) > $ b -> getProperty ( "client_is_talker" , 0 ) ) ? - 1 : 1 ; } return strcmp ( strtolower ( $ a [ "client_nickname" ] ) , strtolower ( $ b [ "client_nickname" ] ) ) ; }
Internal callback funtion for sorting of client objects.

@param  Client $a
@param  Client $b
@return integer
Internal callback funtion for sorting of client objects .