ProcessorBagConfigBuilder.php
private function sortByPriorityAndFlatten(array $items)
    {
        if (!empty($items)) {
            \krsort($items);
            $items = \array_merge(...$items);
        }

        return $items;
    }
private function sortByPriorityAndFlatten(array $items)
    {
        if (!empty($items)) {
            \krsort($items);
            $items = \array_merge(...$items);
        }

        return $items;
    }
private function sortByPriorityAndFlatten ( array $ items ) { if ( ! empty ( $ items ) ) { \ krsort ( $ items ) ; $ items = \ array_merge ( ... $ items ) ; } return $ items ; }
Sorts the given groups of items by priority and returns flatten array of sorted items.
The higher the priority, the earlier item is added to the result array.

@param array $items [priority => [item, ...], ...]

@return array [item, ...]
Sorts the given groups of items by priority and returns flatten array of sorted items . The higher the priority the earlier item is added to the result array .