public function fixRowsPositions(Model\ContainerInterface $container)
    {
        $this->sortChildrenByPosition($container, 'rows');

        $rows = $container->getRows();

        $position = 0;
        foreach ($rows as $row) {
            $row->setPosition($position);
            $position++;
        }

        return $this;
    }
public function fixRowsPositions(Model\ContainerInterface $container)
    {
        $this->sortChildrenByPosition($container, 'rows');

        $rows = $container->getRows();

        $position = 0;
        foreach ($rows as $row) {
            $row->setPosition($position);
            $position++;
        }

        return $this;
    }
public function fixRowsPositions ( Model \ ContainerInterface $ container ) { $ this -> sortChildrenByPosition ( $ container , 'rows' ) ; $ rows = $ container -> getRows ( ) ; $ position = 0 ; foreach ( $ rows as $ row ) { $ row -> setPosition ( $ position ) ; $ position ++ ; } return $ this ; }
Fix the rows positions.

@param Model\ContainerInterface $container

@return ContainerManager
Fix the rows positions .