I have a javascript object which looks like the following:
{ john:32, elizabeth: 29, kevin: 30 }
This is an object with some names and ages.
How can I transform the object to array and sort the array by age?
I want it to be something like [{john:32}, {elizabeth:29}....]