emberjs/data — pull request #456 by pivotal-medici (2012-11-02 20:11:27+00:00)
Title: Maintain order in HasMany when removing and adding to the same collection

Fixes a bug where it adds the object to the end of the collection instead of the inserted position when removing and adding to the same collection.

As a side effect it also offers a small performance improvement as it no longer need to remove the object from the collection and re-add it while it's doing the sync.