build/rekord.js
function(values, delaySort)
  {
    if ( isArray( values ) && values.length )
    {
      var i = this.length;

      AP.push.apply( this, values );

      this.trigger( Collection.Events.Adds, [this, values, i] );

      if ( !delaySort )
      {
        this.sort( undefined, undefined, true );
      }
    }

    return this;
  }
function(values, delaySort)
  {
    if ( isArray( values ) && values.length )
    {
      var i = this.length;

      AP.push.apply( this, values );

      this.trigger( Collection.Events.Adds, [this, values, i] );

      if ( !delaySort )
      {
        this.sort( undefined, undefined, true );
      }
    }

    return this;
  }
function ( values , delaySort ) { if ( isArray ( values ) && values . length ) { var i = this . length ; AP . push . apply ( this , values ) ; this . trigger ( Collection . Events . Adds , [ this , values , i ] ) ; if ( ! delaySort ) { this . sort ( undefined , undefined , true ) ; } } return this ; }
Adds all elements in the given array to this collection - sorting the
collection if a comparator is set on this collection and `delaySort` is
not specified or a true value.

```javascript
var a = Rekord.collect(1, 2, 3, 4);
a.addAll( [5, 6] ); // [1, 2, 3, 4, 5, 6]
```

@method
@memberof Rekord.Collection#
@param {Any[]} values -
The values to add to this collection.
@param {Boolean} [delaySort=false] -
Whether automatic sorting should be delayed until the user manually
calls {@link Rekord.Collection#sort sort}.
@return {Rekord.Collection} -
The reference to this collection.
@emits Rekord.Collection#adds
@emits Rekord.Collection#sort
Adds all elements in the given array to this collection - sorting the collection if a comparator is set on this collection and delaySort is not specified or a true value .