sort by string react

Solutions on MaxInterview for sort by string react by the best coders in the world

showing results for - "sort by string react"
Neele
28 Sep 2017
1const myData = this.state.contacts
2 .sort((a, b) => a.name.localeCompare(b.name))
3 .map((item, i) => <List key={i} data={item} />);
4Never look this up again