lib/collection.js
function (prop, fn) {
    if (typeof prop === 'function') {
      fn = prop;
      prop = undefined;
    }

    var items = this.items;
    this.items = lazy.sortObj(items, {
      prop: prop,
      get: fn
    });
    return this;
  }
function (prop, fn) {
    if (typeof prop === 'function') {
      fn = prop;
      prop = undefined;
    }

    var items = this.items;
    this.items = lazy.sortObj(items, {
      prop: prop,
      get: fn
    });
    return this;
  }
function ( prop , fn ) { if ( typeof prop === 'function' ) { fn = prop ; prop = undefined ; } var items = this . items ; this . items = lazy . sortObj ( items , { prop : prop , get : fn } ) ; return this ; }
Return collection items sorted by the given property.
Return collection items sorted by the given property .