protected function sortListeners( $eventName )
    {
        $this->_sorted[ $eventName ] = [ ];

        if ( isset( $this->listeners[ $eventName ] ) )
        {
            krsort( $this->listeners[ $eventName ] );
            $this->_sorted[ $eventName ] = call_user_func_array( 'array_merge', $this->listeners[ $eventName ] );
        }
    }
protected function sortListeners( $eventName )
    {
        $this->_sorted[ $eventName ] = [ ];

        if ( isset( $this->listeners[ $eventName ] ) )
        {
            krsort( $this->listeners[ $eventName ] );
            $this->_sorted[ $eventName ] = call_user_func_array( 'array_merge', $this->listeners[ $eventName ] );
        }
    }
protected function sortListeners ( $ eventName ) { $ this -> _sorted [ $ eventName ] = [ ] ; if ( isset ( $ this -> listeners [ $ eventName ] ) ) { krsort ( $ this -> listeners [ $ eventName ] ) ; $ this -> _sorted [ $ eventName ] = call_user_func_array ( 'array_merge' , $ this -> listeners [ $ eventName ] ) ; } }
Sorts listeners for an event.

@param string $eventName
Sorts listeners for an event .