I need to sort keys in an object by using its values. I tried to use javascript's sort method but could not figure it out yet. My object looks like:
var myJson = [
        {
        "4": 3,
        "5": 3,
        "14": 3,
        "18": 3,
        "20": 1,
        "23": 3,
        "25": 3,
        "33": 3,
        "36": 3
    }
];
I need to sort name, key pair in way so its ordered to:
var myJson = [
        {
        "4": 3,
        "5": 3,
        "14": 3,
        "18": 3,
        "23": 3,
        "25": 3,
        "33": 3,
        "36": 3,
        "20": 1
    }
];
 
     
     
     
    