I'm looking for a way to reverse alphabetical the object keys. Currently, it stores correctly in alphabetical order, what would be the best approach to ensure it reverses the keys correctly? I see there are a lot of options for arrays to reverse loop but not seeing anything for objects. Is it possible to 'unshift' the keys that the reduce exports?
var alph = Object.keys(feedData)
.sort()
.reduce(function (acc, key) {
acc[key] = feedData[key];
return acc;
}, {});
console.log(alph);
var config = {
"size": [{
"F2-1_largerLegal-input": "",
"F3-1_copy-font": "",
"Frame-Three": "",
"_assetKey": "",
"F3-2_copy-fontSize": "",
"_jvxRtnWeight": "",
"CTA-1_copy-fontSize": "",
"F2-1_copy-font": "",
"EF-1_largerLegal-fontSize": "",
"reportingName": "",
"EF-2_copy-fontSize": "",
"EF-2_copy-font": "",
"F2-3_copy-fontSize": "",
"Frame-One": "",
"assetVarient": "",
"F3-1_largerLegal-fontSize": "",
"EF-1_product-src": "",
"F3-1_frameLegal-input": "",
"F3-1_frameLegal-fontSize": "",
"F3-1_copy-input": "",
"F2-1_copy-input": "",
"EF-3_copy-fontSize": "",
"F2-1_frameLegal-input": "",
"F3-3_copy-fontSize": "",
"F3-2_bg-src": "",
"EF-1_copy-input": "",
"F2-1_frameLegal-fontSize": "",
"F2-2_copy-input": "",
"F2-3_copy-input": "",
"F3-3_copy-input": "",
"EF-1_largerLegal-input": "",
"EF-1_copy-font": "",
"EF-1_frameLegal-fontSize": "",
"F3-3_copy-font": "",
"RO-1_legal-input": "",
"EF-1_frameLegal-input": "",
"F2-3_copy-font": "",
"EF-2_copy-input": "",
"End-Frame": "",
"F3-2_copy-input": "",
"F2-1_copy-fontSize": "",
"F2-1_product-src": "",
"F2-2_copy-font": "",
"rotation": "",
"F3-2_copy-font": "",
"exitUrl": "",
"EF-3_copy-input": "",
"CTA-1_copy-input": "",
"F3-1_copy-fontSize": "",
"EF-1_copy-fontSize": "",
"Frame-Two": "",
"F3-1_bg-src": "",
"EF-3_copy-font": "",
"weighTag": "",
"F3-1_largerLegal-input": "",
"F2-2_copy-fontSize": "",
"dimensions": "",
"F2-1_largerLegal-fontSize": ""
}]
};