title: Sorting arrays numerically by object property value
body: <p>How would you sort this array with these objects by <code>distance</code>, so that you have the objects sorted from smallest distance to biggest distance?</p>
  <pre class="lang-js prettyprint-override"><code>[
    { distance: 3388, duration: &quot;6 mins&quot;, from: &quot;Lenchen Ave, Centurion 0046, South Africa&quot; },
    { distance: 13564, duration: &quot;12 mins&quot;, from: &quot;Lenchen Ave, Centurion 0046, South Africa&quot; },
    { distance: 4046, duration: &quot;6 mins&quot;, from: &quot;Lenchen Ave, Centurion 0046, South Africa&quot; },
    { distance: 11970, duration: &quot;17 mins&quot;, from: &quot;Lenchen Ave, Centurion 0046, South Africa&quot; }
  ]
  </code></pre>