by-key
v1.0.0
Published
sort an array of object by a specific key
Downloads
2,443
Readme
by-key
var byKey = require('by-key');
var people = [
{ name:'Peter', age:23 },
{ name:'Taylor', age:18 },
{ name:'Emma', age:29 }
];
people.sort(byKey('age'));