Sort array by value

PHOTO EMBED

Wed Oct 20 2021 04:32:17 GMT+0000 (UTC)

Saved by @jofinhel #javascript

const myData = [].concat(this.state.data)
    .sort((a, b) => a.common.name > b.common.name ? 1 : -1)
    .map((item, i) => 
        <div key={i}> {item.matchID} {item.timeM}{item.description}</div>
    );
content_copyCOPY