Sha256: 268efc6c90867b5b6fbdaa3ebe3ac137d07c3b0270db8f10797faae2c261541b
Contents?: true
Size: 561 Bytes
Versions: 14
Compression:
Stored size: 561 Bytes
Contents
/** * The base implementation of `_.sortBy` and `_.sortByAll` which uses `comparer` * to define the sort order of `array` and replaces criteria objects with their * corresponding values. * * @private * @param {Array} array The array to sort. * @param {Function} comparer The function to define sort order. * @returns {Array} Returns `array`. */ function baseSortBy(array, comparer) { var length = array.length; array.sort(comparer); while (length--) { array[length] = array[length].value; } return array; } module.exports = baseSortBy;
Version data entries
14 entries across 7 versions & 1 rubygems