Fix #1338 reorder collections don't work
Merge pull request #626 from romainneutron/fix-1338

[3.8] Fix #1338 reorder collections don't work