I've been playing with the new SortableMixin (introduced in 1527680) and I observed some strange behavior. I haven't been able to determine its origin but it's failing on the following fiddle:
As you see, I'm only inserting three items but nonetheless the third one gets duplicated.
Awesome work by the way :)
It seems to work fine if you bind to arrangedContent of the array controller, as in http://jsfiddle.net/H6yDg/2/
It seems to work, but then I've found another bug. When I delete an item, it doesn't seem to remove the correct item from the list:
I made a failing test for ember-data https://github.com/tchak/data/tree/arrayproxyhell
I believe @tomdale is looking in to it
@tomdale, are you actually fixing this?
Sometimes SortableMixin duplicates records fix #965
Interestingly this fixes the duplicates but I'm now seeing missing items until I re-render, will investigate and see if I can shed some light on it tomorrow.
it seems that setting sortAscending: false still runs into this (or some similar) issue