sproutcore/sproutcore — pull request #630 by tim-evans (2011-12-02 20:55:22+00:00)
Title: SC.ArrayController doesn't update length when orderBy is set

This appears sporadically when using orderBy and array observers. `arrayContentDidChange` will notify that the key `length` changes. If anything is observing `length` of the array controller, then `length` will be cached with a wrong value. This change invalidates the content cache _before_ calling `arrayContentDidChange` to prevent the aforementioned bug.