My application has a large array of objects, which I stringify and save them to the disk. Unfortunately, when the objects in the array are manipulated, and sometimes replac
You can sort object by property name in EcmaScript 2015
function sortObjectByPropertyName(obj) { return Object.keys(obj).sort().reduce((c, d) => (c[d] = obj[d], c), {}); }