Sha256: 299925d81edbb9b4aaa99debffc42d88a11169d566d0ba44a1e3fa76ea40c793
Contents?: true
Size: 565 Bytes
Versions: 14
Compression:
Stored size: 565 Bytes
Contents
var baseCompareAscending = require('./baseCompareAscending'); /** * Used by `_.sortBy` to compare transformed elements of a collection and stable * sort them in ascending order. * * @private * @param {Object} object The object to compare to `other`. * @param {Object} other The object to compare to `object`. * @returns {number} Returns the sort order indicator for `object`. */ function compareAscending(object, other) { return baseCompareAscending(object.criteria, other.criteria) || (object.index - other.index); } module.exports = compareAscending;
Version data entries
14 entries across 7 versions & 1 rubygems