title: Sort an array of objects by property of second element in javascript
body: <p>Searching many examples I didn't manage to solve my case. I have an array
  that should be sorted by <code>author</code>. My attempt did nothing. What is the right expression?</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var array = [
    ["ifke", {
      "title": "secure",
      "author": "admin"
    }],
    ["lottery", {
      "title": "The lo",
      "author": "anton"
    }],
    ["short-content", {
      "title": "Short Content",
      "author": "scott"
  
    }],
    ["ziddler", {
      "title": "The Fiddler",
      "author": "herman"
  
    }]
  ];
  
  
  array.sort((a, b) =&gt; a[1].author - b[1].author)
  console.log(array)</code></pre>
  </div>
  </div>
  </p>