Is there a way to sort a JSON array by value without losing the original structure? I've been struggling with this issue and unable to find a solution.
Here's an example of the JSON array:
{
caffeineoverdose: '2517',
workhardplayhard: '761277',
familia: '4633452'
}
What I'm looking for is a sorted version like this:
{
familia: '4633452',
workhardplayhard: '761277',
caffeineoverdose: '2517
}