This question already has an answer here:
I know to sort:
var num = [1, 10, 6]
is
num.sort(function(a,b){
return a - b;
}
What I don't know is how to sort:
var num = [
{"Bob": 1},
{"Tim": 10},
{"Tom": 6},
];
Any ideas??? Thank you!