普通排序

const arr = []
arr.sort((x, y) => x.prop - y.prop)

中文属性值排序

const arr = []
arr.sort((x, y) => x.typeName.localeCompare(y.typeName))

相关文章: