title: Backbone Collection is Half-Sorted When Comparator is Used
body: <p>I am using backbone's collection model to display a sorted list of strings on a backbone view.  Here is the model and the comparator:</p>
  
  <pre class="lang-js prettyprint-override"><code>var MenuItems = Backbone.Collection.extend({
    comparator: function (a, b) {
      if (a.get('name') &lt; b.get('name')) {
        return 1;
      } else if (b.get('name') &gt; a.get('name')) {
        return -1;
      }
    },
  
    model: MenuItem,
    url: '/items'
  });
  </code></pre>
  
  <p>When the code is run, only the first six of the twelve items in the list are sorted, the rest remains unsorted.  When <code>comparator: 'name'</code> is used the list is fully sorted, but when a function is used, this problem occurs.</p>
  
  <p>Anyone know why this might be happening?  Could this be a Backbone bug?  I am using Backbone 1.1.0</p>