i have array of country details such as flag name currencies capital timezone population and many more but in this array first country is kuwait that is start from k and i want to sort this array on the bases of country name
const data = 
  [ { name: { common: 'Kuwait', official: 'State of Kuwait'   } } 
  , { name: { common: 'Palau',  official: 'Republic of Palau' } }
  ...
the path of country name
const name = array[0].name.common
 
     
    