title: How to sort an array of objects based on numbers?
body: <p>I have a Json file who contains the follow array of objects:</p>
  <pre><code>{
      &quot;prospects&quot;: [
        {
          &quot;name&quot;: &quot;Evan Neal&quot;,
          &quot;college&quot;: &quot;Alabama&quot;,
          &quot;positionAcronym&quot;: &quot;OT&quot;,
          &quot;grade&quot;: 8,
          &quot;id&quot;: 1
        },
        {
          &quot;name&quot;: &quot;Kyle Hamilton&quot;,
          &quot;college&quot;: &quot;Notre Dame&quot;,
          &quot;positionAcronym&quot;: &quot;FS&quot;,
          &quot;grade&quot;: 10,
          &quot;id&quot;: 2
        },
        {
          &quot;name&quot;: &quot;Aidan Hutchinson&quot;,
          &quot;college&quot;: &quot;Michigan &quot;,
          &quot;positionAcronym&quot;: &quot;Edge&quot;,
          &quot;grade&quot;: 10,
          &quot;id&quot;: 3
        },
        {
          &quot;name&quot;: &quot;Derek Stingley&quot;,
          &quot;college&quot;: &quot;LSU &quot;,
          &quot;positionAcronym&quot;: &quot;CB&quot;,
          &quot;grade&quot;: 6,
          &quot;id&quot;: 4
        },
        {
          &quot;name&quot;: &quot;Brian Robinson Jr&quot;,
          &quot;college&quot;: &quot;Alabama&quot;,
          &quot;positionAcronym&quot;: &quot;RB&quot;,
          &quot;grade&quot;: 4,
          &quot;id&quot;: 5
        }
      ]
    }
  </code></pre>
  <p>Right now the order is the standard order of the objects on the array</p>
  <blockquote>
  <p>// [ Evan Neal, Kyle Hamilton, Aidan Hutchinson, Derek Stingley, Brian Robinson Jr ]</p>
  </blockquote>
  <p>But I wanna to sort these objects based on his &quot;grade&quot; value. The result has to be something like that. It is possible?</p>
  <blockquote>
  <p>// [ Aidan Huthinson (grade is 10), Kyle Hamilton (grade is 10), Evan Neal (grade is 8), Derek Stingley (grade is 6), Brian
  Robinson Jr (grade is 4)]</p>
  </blockquote>
  <p>I'm getting the data from a fetch method:</p>
  <pre><code>fetch('/data/prospectsData.json')
  .then(res =&gt; res.json())
  .then(data =&gt; {
      data.prospects.map(player =&gt; {
  
         // My code to create the list of elements
  
      })
  })
  </code></pre>