title: Sort an array of objects lexicographically based on a nested value
body: <p>Using JavaScript, I would like to know how to sort lexicographically an array of objects based on a string value in each object.</p>
  <p>Consider:</p>
  <pre><code>[
   {
      &quot;name&quot; : &quot;bob&quot;,
      &quot;count&quot; : true
      &quot;birthday&quot; : 1972
   },
        {
      &quot;name&quot; : &quot;jill&quot;,
      &quot;count&quot; : false
      &quot;birthday&quot; : 1922
   },
        {
      &quot;name&quot; : &quot;Gerald&quot;,
      &quot;count&quot; : true
      &quot;birthday&quot; : 1920
   }
   ]
  </code></pre>
  <p>How can I sort the array alphabetically by name?</p>
  <p>The name values are usernames, so I would like to maintain the letter casing.</p>