build/rekord.js
function(i, delaySort)
  {
    var removing;

    if (i >= 0 && i < this.length)
    {
      removing = this[ i ];

      this.map.removeAt( i );
      this.trigger( Collection.Events.Remove, [this, removing, i] );

      if ( !delaySort )
      {
        this.sort();
      }
    }

    return removing;
  }
function(i, delaySort)
  {
    var removing;

    if (i >= 0 && i < this.length)
    {
      removing = this[ i ];

      this.map.removeAt( i );
      this.trigger( Collection.Events.Remove, [this, removing, i] );

      if ( !delaySort )
      {
        this.sort();
      }
    }

    return removing;
  }
function ( i , delaySort ) { var removing ; if ( i >= 0 && i < this . length ) { removing = this [ i ] ; this . map . removeAt ( i ) ; this . trigger ( Collection . Events . Remove , [ this , removing , i ] ) ; if ( ! delaySort ) { this . sort ( ) ; } } return removing ; }
Removes the model in this collection at the given index `i` - sorting
the collection if a comparator is set on this collection and `delaySort` is
not specified or a true value.

@method
@memberof Rekord.ModelCollection#
@param {Number} i -
The index of the model to remove.
@param {Boolean} [delaySort=false] -
Whether automatic sorting should be delayed until the user manually
calls {@link Rekord.ModelCollection#sort sort}.
@return {Rekord.Model} -
The model removed, or undefined if the index was invalid.
@emits Rekord.ModelCollection#remove
@emits Rekord.ModelCollection#sort
Removes the model in this collection at the given index i - sorting the collection if a comparator is set on this collection and delaySort is not specified or a true value .