public function orderPluginWrappersByRow($pluginWrappers)
    {
        $wrappersByRows = [];

        /** @var \Rcm\Entity\PluginWrapper $wrapper */
        foreach ($pluginWrappers as $wrapper) {
            $rowNumber = $wrapper->getRowNumber();

            if (!isset($wrappersByRows[$rowNumber])) {
                $wrappersByRows[$rowNumber] = [];
            }

            $wrappersByRows[$rowNumber][] = $wrapper;
        }

        ksort($wrappersByRows);

        return $wrappersByRows;
    }
public function orderPluginWrappersByRow($pluginWrappers)
    {
        $wrappersByRows = [];

        /** @var \Rcm\Entity\PluginWrapper $wrapper */
        foreach ($pluginWrappers as $wrapper) {
            $rowNumber = $wrapper->getRowNumber();

            if (!isset($wrappersByRows[$rowNumber])) {
                $wrappersByRows[$rowNumber] = [];
            }

            $wrappersByRows[$rowNumber][] = $wrapper;
        }

        ksort($wrappersByRows);

        return $wrappersByRows;
    }
public function orderPluginWrappersByRow ( $ pluginWrappers ) { $ wrappersByRows = [ ] ; /** @var \Rcm\Entity\PluginWrapper $wrapper */ foreach ( $ pluginWrappers as $ wrapper ) { $ rowNumber = $ wrapper -> getRowNumber ( ) ; if ( ! isset ( $ wrappersByRows [ $ rowNumber ] ) ) { $ wrappersByRows [ $ rowNumber ] = [ ] ; } $ wrappersByRows [ $ rowNumber ] [ ] = $ wrapper ; } ksort ( $ wrappersByRows ) ; return $ wrappersByRows ; }
orderPluginWrappersByRow - Assumes we have ordered them by RenderOrder the DB join

@param array $pluginWrappers

@return array
orderPluginWrappersByRow - Assumes we have ordered them by RenderOrder the DB join