sorts object by keys
npm install object-sort
javascriptvar objectSort = require('object-sort');var obj = {b: 3, c: 5, a: 1};objectSort(obj); // {a: 1, b: 3, c: 5}// With reverse flagobjectSort(obj, true); // {c: 5, b: 3, a: 1}
objectSort(obj); // {a: 1, b: 3, c: 5}
// With reverse flagobjectSort(obj, true); // {c: 5, b: 3, a: 1}