1// If needed, convert `.timestamp` into a date with `new Date(x.timestamp)`
2myList.sort(function(x, y){
3 return x.timestamp - y.timestamp;
4})
5
1const months = ['March', 'Jan', 'Feb', 'Dec'];
2months.sort();
3console.log(months);
4// expected output: Array ["Dec", "Feb", "Jan", "March"]