We have an issue with an Embedded schema (Car) containing a list of Embedded Schemas (Images). When we add or delete images everything is working fine. Now we added Reordering the images using drag’n drop in the Frontend. But these reordering changes are not detected by cast_embed and the order stays the same.
A workaround that works is changing a field on Image (we have a version field, that can be changed). In that case the new order is persisted.
Any idea how to accomplish this reordering without doing hacky workarounds?
Ecto version is 2.1.6 (upgrading is hard right now, since it breaks half of our app, but could be a solution as well)