What is the best way to order and transform:
{
'32': 'foo',
'24': 'bar',
'36': 'doe'
}
into:
[
{'24': 'bar'},
{'32': 'foo'},
{'36': 'doe'}
]
I need to order them based on key, which is a string in the original object. jQuery’s API is allowed to use.