I have something similar to the following object below:
EUR: {
    name: 'Europe',
    countries: {
       FR: {
          name: 'France',
          cities: {}
       },
       DE: {
          name: 'Germany',
          cities: {}
       },
       ES: {
          name: 'Spain',
          cities: {}
       }
    }
 }
I am trying to figure out a way to sort countries in alphabetical order on countries then the name of each country e.g France, Spain, Germany. The approach I was going to take was splitting this out into an array First and rebuilding.
I was wondering if anybody has any different approaches that I am missing they could help me with?
 
    