I have a JSON value that I want to sort it in descending order (I think in the example you will understand).
Example:
var json = {
'um': {
'cont': '5'
},
'dois': {
'cont': '10'
}
...
};
So in this case, it should be ordered by the 'cont' value of each child of json .
In the example I used fixed values, but the code I'm going to use will have many more children in json and the cont values will be different too.
I think you can understand, but in the end the value should be: ['two', 'one'];