A nested grid copy with its own cells, switched to a variant with an
identical grid, carries those cells onto the new copy. Its children
kept the new main's order, so they no longer followed the flow of the
carried cells, as the children of a grid copy with its own cells do.
After carrying the cells, the switch reorders the new copy's children
by them, as the sync does for a copy with its own cells.
Benchmark (scripts/bench-components, ms, lower 2.5% quantile):
| :world | :baseline | :now | :mean | :ratio |
|------------------------------------+-----------+--------+---------+--------|
| deepest-edit-through-three-levels | 35.215 | 20.163 | 20.973 | 0.57 |
| edit-through-a-chain-of-dependents | 68.931 | 39.635 | 41.769 | 0.57 |
| library-update-into-copies | 83.083 | 49.886 | 50.993 | 0.6 |
| main-edit-among-many-shapes | 4.837 | 2.05 | 2.334 | 0.42 |
| main-edit-into-10-copies | 1.79 | 0.95 | 1.003 | 0.53 |
| main-edit-into-100-copies | 15.415 | 9.468 | 10.043 | 0.61 |
| main-edit-into-1000-copies | 153.086 | 98.029 | 103.338 | 0.64 |
| variant-switch-into-copies | 32.052 | 21.263 | 22.422 | 0.66 |
AI-assisted-by: claude-opus-5-5