📜  按字符串排序反应 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:24.384000             🧑  作者: Mango

代码示例1
const myData = this.state.contacts
 .sort((a, b) => a.name.localeCompare(b.name))
 .map((item, i) => );
Never look this up again