I have two objects that I am attempting to compare to see if their content is the same. The function I am writing should have these two objects equal true, however, I am struggling with how to sort these so I can test for equal content (it's out of order). How would I solve this?
const obj1 = {
  name: 'Sam',
  age: 27,
  description: [{
    eyes: 'blue',
    hair: 'brown'
  }]
} 
const obj2 = {
  age: 27,
  name: 'Sam',
  description: [{
    hair: 'brown',
    eyes: 'blue'
  }]
}
 
    