Fix #1584 Unable to order medias

Conflicts:
	templates/web/prod/Baskets/Reorder.html.twig
Merge pull request #805 from nlegoff/fix1584

[3.8] Fix #1584 Unable to order medias