protected function prepareProcessors()
    {
        usort($this->processors, function (ProcessorInterface $one, ProcessorInterface $two) {
            if ($one->getPriority() == $two->getPriority()) {
                return 0;
            }

            return $one->getPriority() < $two->getPriority() ? 1 : -1;
        });
    }
protected function prepareProcessors()
    {
        usort($this->processors, function (ProcessorInterface $one, ProcessorInterface $two) {
            if ($one->getPriority() == $two->getPriority()) {
                return 0;
            }

            return $one->getPriority() < $two->getPriority() ? 1 : -1;
        });
    }
protected function prepareProcessors ( ) { usort ( $ this -> processors , function ( ProcessorInterface $ one , ProcessorInterface $ two ) { if ( $ one -> getPriority ( ) == $ two -> getPriority ( ) ) { return 0 ; } return $ one -> getPriority ( ) < $ two -> getPriority ( ) ? 1 : - 1 ; } ) ; }
Sort processors by priority
Sort processors by priority