build/rekord.js
function(delaySort)
  {
    var removed = AP.pop.apply( this );
    var i = this.length;

    this.trigger( Collection.Events.Remove, [this, removed, i] );

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

    return removed;
  }
function(delaySort)
  {
    var removed = AP.pop.apply( this );
    var i = this.length;

    this.trigger( Collection.Events.Remove, [this, removed, i] );

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

    return removed;
  }
function ( delaySort ) { var removed = AP . pop . apply ( this ) ; var i = this . length ; this . trigger ( Collection . Events . Remove , [ this , removed , i ] ) ; if ( ! delaySort ) { this . sort ( undefined , undefined , true ) ; } return removed ; }
Removes the last element in this collection and returns it - sorting the
collection if a comparator is set on this collection and `delaySort` is
no specified or a true value.

```javascript
var c = Rekord.collect(1, 2, 3, 4);
c.pop(); // 4
```

@method
@memberof Rekord.Collection#
@param {Boolean} [delaySort=false] -
Whether automatic sorting should be delayed until the user manually
calls {@link Rekord.Collection#sort sort}.
@return {Any} -
The element removed from the end of the collection.
@emits Rekord.Collection#remove
@emits Rekord.Collection#sort
Removes the last element in this collection and returns it - sorting the collection if a comparator is set on this collection and delaySort is no specified or a true value .