emberjs/ember.js — pull request #803 by oldfartdeveloper (2012-05-10 04:41:54+00:00)
Title: Add an Ember.SortedArrayProxy class (attempt 2)

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**.

*Note: this is "attempt 2" after I inadvertently submitted the previous attempt as an empty pull request (d'oh)*