Iteration Order for Class Indexes of Associative Array

In reply to dave_59:

The ordering you are seeing is based on the creation order of the object. But creation order of the element would also be acceptable.

Shouldn’t this be same as the order of calling create( ) ?

( However this isn’t the case in the above code where user_comp2_h is created first )

Or is it up to the tool to decide which object gets created first which could be independent of the order in which create() is actually called for the object .