Defined ordering is only applied when the collection is loaded from the datastore.
It is not maintained by Openjpa as you modify the collection in memory.
Openjpa invalid data cache in case the persistence operation may result cache in wrong order.
This test suite tests various cases for the above problem.