I\'m having array of objects where object looks like this (values change):
{ stats: { hp: 2, mp: 0, defence: 4, agili
The array is frozen to prevent mutation of the redux state. You use react cloneElement(): https://reactjs.org/docs/react-api.html#cloneelement
[...enemies].sort((a, b) => { return b.stats.speed - a.stats.speed })