Dictionaries are unorder collections. There are reasons why the order of items appears seemingly random; there is actually a logical reason why. This video explains how python builds dictionaries and orders key value pairs; I suspect under the hood, Dynamo is doing the same:

I know. I was referring to the mechanics of how dictionaries are allocated memory addresses (hashing) - which that python video explains really well - demonstrating why dictionary key value pairs are seemingly ‘unordered’ and providing an insight and answer the OP if i am not mistaken. All languages which support dictionaries do the same thing, so the specific language in use isn’t important.