Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function sortByAge(obj) {
- return obj.sort(function(a,b) {
- return a.age - b.age;
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement