emberjs/ember.js — pull request #662 by oldfartdeveloper (2012-04-06 19:58:39+00:00)
Title: Add an Ember.SortedArrayProxy class

This PR pulls the [App.contactsController](https://github.com/emberjs/examples/blob/master/contacts/app.js)'s 4 methods to keep the ArrayProxy sorted:

* add
* binarySearch
* remove
* contactSortValueDidChange

into a new wrapper class around ```ArrayProxy```. The methods are generalized. If you indicate you will accept this pull request, I will be glad to update the [App.contactsController](https://github.com/emberjs/examples/blob/master/contacts/app.js) to make the example easier to understand.

I've earnestly tried to put everything I can think of that's needed into automated regression tests and the API docs. I hope you like it. Thanks. **OldFartDeveloper** w/ help from **Drew Purdy** and **James Gary**.