CUIHelper Order of Components is important

Can someone explain to me why the order of components inside the json given to the CUIHelper is important?

I have these two json strings, that are logically exactly the same and they both produce a different View:

Json1:

[{"name":"MY_MOD_UI","parent":"Hud.Menu","components":[{"type":"UnityEngine.UI.Image","material":"assets/content/ui/uibackgroundblur-ingamemenu.mat","color":"0 0 0 0.8"},{"type":"RectTransform","anchormin":"0 0","anchormax":"1 1"},{"type":"NeedsCursor"}]}]


Which results in

Json2:

[{"name":"MY_MOD_UI","parent":"Hud.Menu","components":[{"type":"RectTransform","anchormin":"0 0","anchormax":"1 1"},{"type":"UnityEngine.UI.Image","material":"assets/content/ui/uibackgroundblur-ingamemenu.mat","color":"0 0 0 0.8"},{"type":"NeedsCursor"}]}]


Which results in

@Wulf Sorry that I ping you directly, but I think you might be one of the few people who could have an answer for this.

This looks like technically a Rust CUI question, not an Oxide question. The CUI helper just produces the json and makes a call to the Rust server to send the json string to the client via RPC. The Rust client then unpacks the json and creates the elements.

You might be able to determine the reason for this by looking at the CUI code on GitHub.
https://github.com/Facepunch/Rust.Community/blob/master/CommunityEntity.UI.cs