怎么使用冒泡排序实现时间戳从小到大的排序?
需要排序的数组arr1,timestramp是时间戳
var arr1 = [
{
timestramp: '1651133563987',
name: '11111'
},
{
timestramp: '1651133798159',
name: '33333'
},
{
timestramp: '1651133783583',
name: '22222'
}
];