This can be assigned as an attribute when `Collection is extended since it doesn't change:

    var SortableCollection = Backbone.Collection.extend({
      comparator: comparator,
      sortByAttr: function(...) {
        ...
      }
    });