title: Sort an array of objects in React and render them
body: <p>I have an array of objects containing some information. I am not able to render them in the order I want and I need some help with that. I render them like this:      </p>
  
  <pre><code>this.state.data.map(
      (item, i) =&gt; &lt;div key={i}&gt; {item.matchID} {item.timeM} {item.description}&lt;/div&gt;
  )
  </code></pre>
  
  <p>Is it possible to sort them ascending with <code>item.timeM</code> in that <code>map()</code>-function or do I have to sort them before i use map? </p>