build/rekord.js
function(key, model, delaySort)
  {
    this.map.put( key, model );
    this.trigger( Collection.Events.Add, [this, model, this.map.indices[ key ]] );

    if ( !delaySort )
    {
      this.sort();
    }
  }
function(key, model, delaySort)
  {
    this.map.put( key, model );
    this.trigger( Collection.Events.Add, [this, model, this.map.indices[ key ]] );

    if ( !delaySort )
    {
      this.sort();
    }
  }
function ( key , model , delaySort ) { this . map . put ( key , model ) ; this . trigger ( Collection . Events . Add , [ this , model , this . map . indices [ key ] ] ) ; if ( ! delaySort ) { this . sort ( ) ; } }
Places a model in this collection providing a key to use.

@method
@memberof Rekord.ModelCollection#
@param {modelKey} key -
The key of the model.
@param {Rekord.Model} model -
The model instance to place in the collection.
@param {Boolean} [delaySort=false] -
Whether automatic sorting should be delayed until the user manually
calls {@link Rekord.ModelCollection#sort sort}.
@return {Rekord.ModelCollection} -
The reference to this collection.
@emits Rekord.ModelCollection#add
@emits Rekord.ModelCollection#sort
Places a model in this collection providing a key to use .