Package Exports
- @does/sortby
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@does/sortby) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
sortby

Sort array of objects by key or function
const sortby = require('@does/sortby');
sortby([{name: 'Alfred', age: 10}, {name: 'John', age: 30}, {name: 'Paul', age: 20}], 'age', {order: 'desc'});
// [{name: 'John', age: 30}, {name: 'Paul', age: 20}, {name: 'Alfred', age: 10}]