What happened?
Description
During the Craft 5 upgrade, all matrix block types in all matrix fields are converted to entries. The matrix block types setting is replaced by an entry type selection. We found that during this update, the existing order of the matrix blocks is not maintained. After the update, the entry types selected in the matrix field are in a (seemingly) random order, instead of the order the matrix blocks had. This is bad for the author experience, as you usually put more commonly used matrix blocks at the top, and/or order them in a way that makes sense for the given block types.
Steps to reproduce
- In a Craft 4 site, create a Matrix field with several matrix block types. Note the existing order of the block types.
- Upgrade the site to Craft 5.
- Check the order of the migrated entry types in the matrix field.
Expected behavior
The order should be preserved during the upgrade.
Actual behavior
The order is not preserved, the blocks are shuffled around.
Craft CMS version
5.5.5
PHP version
8.3
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
What happened?
Description
During the Craft 5 upgrade, all matrix block types in all matrix fields are converted to entries. The matrix block types setting is replaced by an entry type selection. We found that during this update, the existing order of the matrix blocks is not maintained. After the update, the entry types selected in the matrix field are in a (seemingly) random order, instead of the order the matrix blocks had. This is bad for the author experience, as you usually put more commonly used matrix blocks at the top, and/or order them in a way that makes sense for the given block types.
Steps to reproduce
Expected behavior
The order should be preserved during the upgrade.
Actual behavior
The order is not preserved, the blocks are shuffled around.
Craft CMS version
5.5.5
PHP version
8.3
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions