I have a very simple json object,
{
"costA": 9617,
"costB": 11100,
"costC": 13208,
"costD": 9910
}
Is it possible to sort this json (in javascript) to get the resultant?
{
"costA": 13208,
"costB": 11100,
"costC": 9910,
"costD": 9617
}
Note: key
names can change..