jashkenas/backbone — pull request #3087 by edygar (2014-03-22 03:39:43+00:00)
Title: Avoid `sort` on Collection's `add` method when collection is already sorted.

Now, the collection tracks the state of sorting based on comparator used on last sort, so the collection knows whether its models need to be sorted on `add` method or not.