         }
         // Use the predefined UI style if set, otherwise use editor's own UI style
         element.style = uiElementDefaultStyle !is null ? uiElementDefaultStyle : uiStyle;
-        // Does not allow UI subsystem to reorder children while editing the element in the editor
+        // Do not allow UI subsystem to reorder children while editing the element in the editor
         element.sortChildren = false;
 
         // Create an undo action for the create

        element.vars[FILENAME_VAR] = fileName;
        element.vars[MODIFIED_VAR] = false;

        // Does not allow UI subsystem to reorder children while editing the element in the editor
        element.sortChildren = false;

        editorUIElement.AddChild(element);


    return true;
}

void ResetSortChildren(UIElement@ element)
{
    element.sortChildren = false;

    // Perform the action recursively for child elements
    for (uint i = 0; i < element.numChildren; ++i)
        ResetSortChildren(element.children[i]);
}

void OpenUIElement(const String&in fileName)
{
    if (fileName.empty)
