demos/animated-game/js/backbone.js
function(model, value, context) {
      value || (value = this.comparator);
      var iterator = _.isFunction(value) ? value : function(model) {
        return model.get(value);
      };
      return _.sortedIndex(this.models, model, iterator, context);
    }
function(model, value, context) {
      value || (value = this.comparator);
      var iterator = _.isFunction(value) ? value : function(model) {
        return model.get(value);
      };
      return _.sortedIndex(this.models, model, iterator, context);
    }
function ( model , value , context ) { value || ( value = this . comparator ) ; var iterator = _ . isFunction ( value ) ? value : function ( model ) { return model . get ( value ) ; } ; return _ . sortedIndex ( this . models , model , iterator , context ) ; }
Figure out the smallest index at which a model should be inserted so as to maintain order.
Figure out the smallest index at which a model should be inserted so as to maintain order .