title: Backbone.js comparator function isn't working properly
body: <p>I'm using the following code in oder to make sure Models are added to a Collection based on their <code>created_at</code> unix time. Newer items should be before older. </p>
  
  <pre><code>comparator: function(a, b) {
      var time_a = a.get('created_at_time');
      var time_b = b.get('created_at_time');
  
      if(time_a &lt; time_b) return -1;
      else if(time_a &gt; time_b) return 1;
      else return 0; // time_a === time_b
  }
  </code></pre>
  
  <p>For some reasons, items are returned in the wrong order anyway. Any thoughts on a solution? I'm using Backbone.js.</p>
  
  <p>Thanks.</p>