I wrote a test to see whether Ember respects the order that attributes are assigned in component / custom element tags. The resulting behaviour is exactly what I hoped to find, so I’m sharing the demo here.
Note a curious behaviour: If the same attribute is assigned more than once, then the position of the first assignment is what determines assignment precedence, although it is the rightmost value that gets used. e.g.:
In particular, you can see that the Handlebars compiler does preserve the order and items of the hash. The issue thus boils down to the fact that JavaScript (typically?) enumerates keys in the order they were defined (in this case, the order they appear in the hash). Defining a key twice just sets the value twice.
tl;dr: this shares the same semantics as regular JavaScript hashes.