title: How to reverse nested object in Javascript
body: <p>I have an object like such:</p>
  
  <pre><code>{ '2018':
     { '12':
        { '25': {},
          '26': {},
          '27': {},
          '28': {},
          '29': {},
          '30': {},
          '31': {} } },
    '2019': { '1': { '1': {} } } }
  </code></pre>
  
  <p>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</p>