Correct) {
                    return; // No DOM manipulation needed
                }
                
                // Apply minimal DOM changes to achieve correct order
                finalNodes.forEach((node, targetIndex) => {
                    const currentIndex = Array.from(parentElement.children).indexOf(node);
                    
                    if (currentIndex !== targetIndex) {
                        if (targetIndex >= parentElement.children.length) {
                            // App