arr.sort((a,b)=>a.type-b.type)
数组对象根据某一个元素排序
おすすめ
転載: blog.csdn.net/huhuhuja/article/details/116518637
ランキング
arr.sort((a,b)=>a.type-b.type)