I have a question about re-ordering the model data. So we have product data returned from our API that is in a specific order. But there are instances in our application where only some products are loaded first (for instance, the shopping cart where it only loads the products in the cart).
If that happens, then the ordering of the model is off since it’s in order of what was loaded first.
I do have a temporary fix where I re-sort the data before displaying it within a component, but it seems redundant (as the API call to retrieve all the products are already in proper order) and also adds additional overhead to the load time.
Is there a simpler way of doing this or am I stuck having to re-sort it retroactively?
To note, I’m using Ember 2.5 and strangely it never happened on Ember 1.13.