#= require app/models/movie

class App.Collections.Movies extends Backbone.Collection
  model: App.Models.Movie
  url: '/movies'

#= require app/models/movie

class App.Collections.Movies extends Backbone.Collection
  model: App.Models.Movie
  url: '/movies'

  comparator: (model) ->
    - model.get('opening_weekend')

Sort Movies by opening weekend totals
Sort Movies by opening weekend totals

And with very little code, we can have our list of Movies sort itself by
descending opening weekend totals.
