I am not sure if the order of the entities stored in entity_handle[] conforms to the order these entities they are placed into the level...
In fact it depends on the order the "individual" actions applied to each entity are executed. But if this order conforms to the placing one, then you´re absolutely right.