根据age属性进行排序:
const arr1 = [33, 11, 55, 22, 66];
const arr2 = [{age: 55}, {age: 22}, {age: 11}, {age: 66}, {age: 33}]
// 排序 arr2
arr2.sort((prev, next) => arr1.indexOf(prev.age) - arr1.indexOf(next.age))
console.log('排序后arr2 => ', arr2)
console.log(' arr1 => ', arr1)