arr.sort((a,b)=>a.type-b.type)
数组对象根据某一个元素排序
Supongo que te gusta
Origin blog.csdn.net/huhuhuja/article/details/116518637
Recomendado
Clasificación