emberjs/ember.js — pull request #764 by rlivsey (2012-04-30 15:30:46+00:00)
Title: unshiftObjects should maintain the order of the inserted array

According to the documentation, `unshiftObjects` should maintain the order of the inserted array, as such:

var colors = ["red", "green", "blue"];
colors.unshiftObjects(["black", "white"]); => ["black", "white", "red", "green", "blue"]

However, currently the inserted array is added in reverse order because it unshifts one by one from the beginning:

var colors = ["red", "green", "blue"];
colors.unshiftObjects(["black", "white"]); => ["white", "black", "red", "green", "blue"]

I've added failing tests for `unshiftObjects` by duplicating the `unshiftObject` ones, then fixed the issue by unshifting the array in reverse order.