diff --git a/src/Components/Editor/Actions/ContainerOperations.ts b/src/Components/Editor/Actions/ContainerOperations.ts index 3e8525e..f264f5a 100644 --- a/src/Components/Editor/Actions/ContainerOperations.ts +++ b/src/Components/Editor/Actions/ContainerOperations.ts @@ -289,17 +289,17 @@ function SetContainer( symbols ); - // sort the children list by their position - const parent = FindContainerById(containers, container.properties.parentId); - if (parent !== null && parent !== undefined) { - SortChildren(containers, parent); - } - // Apply special behaviors: rigid, flex, symbol, anchor ApplyBehaviors(containers, container, symbols); // Apply special behaviors on siblings ApplyBehaviorsOnSiblingsChildren(containers, container, symbols); + + // sort the children list by their position + const parent = FindContainerById(containers, container.properties.parentId); + if (parent !== null && parent !== undefined) { + SortChildren(containers, parent); + } } /**