lib/mixins/list.js
function (prop) {
      var keys = Object.keys(this.keyMap);
      var items = this.items.map(function (item, i) {
        item.key = keys[i];
        return item;
      });
      var sorted = lazy.arraySort(items, prop);
      this.items = sorted;
      this.keyMap = this.items.reduce(function (acc, item, i) {
        acc[item.key] = i;
        return acc;
      }, {});
      return this;
    }
function (prop) {
      var keys = Object.keys(this.keyMap);
      var items = this.items.map(function (item, i) {
        item.key = keys[i];
        return item;
      });
      var sorted = lazy.arraySort(items, prop);
      this.items = sorted;
      this.keyMap = this.items.reduce(function (acc, item, i) {
        acc[item.key] = i;
        return acc;
      }, {});
      return this;
    }
function ( prop ) { var keys = Object . keys ( this . keyMap ) ; var items = this . items . map ( function ( item , i ) { item . key = keys [ i ] ; return item ; } ) ; var sorted = lazy . arraySort ( items , prop ) ; this . items = sorted ; this . keyMap = this . items . reduce ( function ( acc , item , i ) { acc [ item . key ] = i ; return acc ; } , { } ) ; return this ; }
Sort list items by a property on each item.

@param  {String} `prop` Property to sort by.
@param  {Function} `fn` Optional getter function to get items by.
@return {Object} Returns current instance to enable chaining
@api public
Sort list items by a property on each item .