I have a JSON hash of stock symbols:
"NASDAQ":{
"CYTX":{"last":0.73,"change":47.3,"volume":199962,"low":0.62},
"YECO":{"last":2.19,"change":58.7,"volume":23467,"low":1.78},
"AMDA":{"last":0.505,"change":34.5,"volume":77822,"low":0.403},
"ADMP":{"last":2.75,"change":22.2,"volume":111213,"low":2.30
"KBLMR":{"last":0.39,"change":29.8,"volume":900473,"low":0.27},
}
Is there a built-in way in Javascript to sort this based on the "change" column (i.e. not the hash keys of CYTX, YECO, etc...)?
So the result will be (sorted by change descending):
"NASDAQ":{
"YECO":{"last":2.19,"change":58.7,"volume":23467,"low":1.78},
"CYTX":{"last":0.73,"change":47.3,"volume":199962,"low":0.62},
"AMDA":{"last":0.505,"change":34.5,"volume":77822,"low":0.403},
"KBLMR":{"last":0.39,"change":29.8,"volume":900473,"low":0.27},
"ADMP":{"last":2.75,"change":22.2,"volume":111213,"low":2.30
}