dist/vuex-orm.esm.js
function orderBy(collection, keys, directions) {
    var index = -1;
    var result = collection.map(function (value) {
        var criteria = keys.map(function (key) { return value[key]; });
        return { criteria: criteria, index: ++index, value: value };
    });
    return baseSortBy(result, function (object, other) {
        return compareMultiple(object, other, directions);
    });
}
function orderBy(collection, keys, directions) {
    var index = -1;
    var result = collection.map(function (value) {
        var criteria = keys.map(function (key) { return value[key]; });
        return { criteria: criteria, index: ++index, value: value };
    });
    return baseSortBy(result, function (object, other) {
        return compareMultiple(object, other, directions);
    });
}
function orderBy ( collection , keys , directions ) { var index = - 1 ; var result = collection . map ( function ( value ) { var criteria = keys . map ( function ( key ) { return value [ key ] ; } ) ; return { criteria : criteria , index : ++ index , value : value } ; } ) ; return baseSortBy ( result , function ( object , other ) { return compareMultiple ( object , other , directions ) ; } ) ; }
Creates an array of elements, sorted in specified order by the results
of running each element in a collection thru each iteratee.
Creates an array of elements sorted in specified order by the results of running each element in a collection thru each iteratee .