hello everyone, thank you for ur help,
so as you can see in the picture
i want to add some exercice choosen to my mission, the problem is that when i select an many exercice they stay in the same order they came with, for example when i select the third exercice first then the second exercice, they stay in the same order, i don’t know if u understood me. this is the code for the input :
<?php
echo $this->Layout->input(‘MissionExercice.exercice_id’, array( ‘options’ => $exercicespn, ‘multiple’=>‘multiple’, ‘class’=>‘select2’, ));
?>