📅  最后修改于: 2022-03-11 15:01:10.603000             🧑  作者: Mango
代码示例2
arr.sort((a, b) => (a.nameofKeyFromArray < b.nameofKeyFromArray ? -1 : Number(a.nameofKeyFromArray > b.nameofKeyFromArray)));