mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
react app
This commit is contained in:
16
react-app/node_modules/lodash/internal/compareAscending.js
generated
vendored
Normal file
16
react-app/node_modules/lodash/internal/compareAscending.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
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.
|
||||
* @param {Object} other The other object to compare.
|
||||
* @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;
|
Reference in New Issue
Block a user