buildTree can results in different element path trees for the same metadata maps with different key orders.
See e.g. the following metadata maps:
This one has the card/ descendants split into two different sections of the key array:

That results in a different path tree then for the following one (which has proper order accrding to the hierarchy):
