protected function emitterEventSortEvents($eventName)
    {
        $this->emitterEventSorted[$eventName] = [];

        if (isset($this->emitterEvents[$eventName])) {
            krsort($this->emitterEvents[$eventName]);

            $this->emitterEventSorted[$eventName] = call_user_func_array('array_merge', $this->emitterEvents[$eventName]);
        }
    }
protected function emitterEventSortEvents($eventName)
    {
        $this->emitterEventSorted[$eventName] = [];

        if (isset($this->emitterEvents[$eventName])) {
            krsort($this->emitterEvents[$eventName]);

            $this->emitterEventSorted[$eventName] = call_user_func_array('array_merge', $this->emitterEvents[$eventName]);
        }
    }
protected function emitterEventSortEvents ( $ eventName ) { $ this -> emitterEventSorted [ $ eventName ] = [ ] ; if ( isset ( $ this -> emitterEvents [ $ eventName ] ) ) { krsort ( $ this -> emitterEvents [ $ eventName ] ) ; $ this -> emitterEventSorted [ $ eventName ] = call_user_func_array ( 'array_merge' , $ this -> emitterEvents [ $ eventName ] ) ; } }
Sort the listeners for a given event by priority.

@param  string $eventName

@return void
Sort the listeners for a given event by priority .