Multiple items in cake 4 (ordering articles) [solved]

Since cakephp 2, I used to sort articles this way :

<table>
                <tbody id="sortable">
                <?php
                $line = 0;
                foreach ($articles as $article) {
                    echo $this->Form->control($line. '.id', [
                            'type' => 'hidden',
                            'value' => $article->id
                        ]);
                    echo '<tr>';
                    echo '<td>' . $this->Form->control($line . '.name', [
                            'label' => '',
                            'value' => $article->name,
                            'readonly' => true
                        ]);
                    echo '</td>';
                    echo '<td class="sort">' . $this->Form->control($line . '.sort', [
                            'label' => '',
                            'value' => $article->sort,
                            'type' => 'text',
                            'pattern' => '\d+',
                            'readonly' => true,
                        ]);
                    echo '</td>';
                    echo '</tr>';
                    $line ++;
                }
                ?>
                </tbody>
            </table>

(I used input instead of control of course)

But now in 4.x, I get an error when submitting the form :

`Missing field '0.sort, 1.sort, 2.sort' in POST data`

Why do sort fields dot not get transmitted ?

Is there any tuto or article explaining the right way to do this ?

Answering to myself :slightly_smiling_face:, it was a javascript problem.

Now, saving does not work, keep on working …

For a complete solution (in case someone would like to know) :

if ($this->request->is(['patch', 'post', 'put'])) {
            $entities = $this->Articles->patchEntities($articles, $this->request->getData());

            // Save entity
            $success = $this->Articles->saveMany($entities);

            if ($success) {
                $this->Flash->success(__('The order has been saved.'));
            } else {
                $this->Flash->error(__('The order could not be saved. Please, try again.'));
            }
        }