As your data is not stored in any special order, you can never be sure in which order you get the objects when retrieving over association. If you want to have an order, you need to add a sorting or retrieve from database (xpath) with a specified sorting.