const c = a .map((info, i) => ({ xm: info.xm, 总分: info.语文 + b[i].数学 })) .sort((a,b) => b.总分 - a.总分);