title: Backbone.js Comparator not sorting (Coffeescript)
body: <p>I am trying to sort a collection by alphabetical order in Backbone.js using Coffeescript. The collection is the first 5 objects in a table that I want to display. </p>
  
  <pre><code>  preview = new Collections.Bananas(@model.get('bananas').slice(0,5))
  
    preview.comparator = (banana) -&gt; banana.get("name")
  
    bananas = new BundleOfBananas.Bananas({collection: preview})
  </code></pre>
  
  <p>The objects are all displaying and I'm getting the proper data, it is just not being alphabetically arranged. Can anyone help me out with Backbone.js comparators? Thanks!</p>