I'm having trouble sorting through this array in a way that's in the title where words are the keys and value is the count.
const words = {
  "be": 3,
  "a": 5,
  "an": 3
}
Desired out put would be:
{ 
"a": 5,
"an": 3, 
"be": 3
}
Object.entries(wordCount).sort(([, a], [, b]) => b - a)
But I don't know how I would sort items with the same value in abc order :'(
 
    