I have an entity reference field which references and displays multiple nodes on a Drupal 7 install.
I am trying to get them to display in date order (the date is a field on the referenced nodes). The problem I have is that if a referenced node date is changed, or a new one created, the display order doesn't change.
I use a entity reference view to order the nodes on their date fields, which works when you manually edit the master node and then save it. This then updates the order. However this not a very practical solution.
I have tried creating a module which when referenced nodes are modified or created, it programatically loads and saves the master node using node_load and node_save.
However this doesn't trigger the referenced nodes to update their display order.
Does anyone know anything else I can try?