orderBy
Sort collections by fields and getters. Inspired by Angular's orderBy filter
Usage
npm install orderby
var orderBy = ; var collection = age: 100 name: 'Michael' age: 25 name: 'Ben' age: 100 name: 'Danny' age: 25 name: 'Max'; // sort by fields; // sort by getters; // reverse each sort individually;
Contributing
Please follow our Code of Conduct when contributing to this project.
$ git clone https://github.com/goodeggs/orderby && cd orderby
$ npm install
$ npm test
Module scaffold generated by generator-goodeggs-npm.