I have an object like such:
{ '2018':
{ '12':
{ '25': {},
'26': {},
'27': {},
'28': {},
'29': {},
'30': {},
'31': {} } },
'2019': { '1': { '1': {} } } }
However for frontend purposes, I would like to reverse these values so it shows the most recent dates first. I know that Javascript can't guarantee the order of keys so this isn't even an ideal solution. What is the best way to represent this data so I can iterate over it on the frontend and display the data for each day properly? Thanks