title: How to sort an array object based on the key value?
body: <p>Below is an array object I would like to sort based on the first key value of each of the object in each of the array.</p>
  
  <pre><code>var beforeSort = [{
  "James": "value",
  "key": "value",
  "key": "value",
  "key": "value"
  },{
  "William": "value",
  "key": "value",
  "key": "value",
  "key": "value"
  },{
  "Cindy": "value",
  "key": "value",
  "key": "value",
  "key": "value"
  },{
  "Apple": "value",
  "key": "value",
  "key": "value",
  "key": "value"
  },{
  "Timmy": "value",
  "key": "value",
  "key": "value",
  "key": "value"
  }];
  </code></pre>
  
  <p>The result that I want to achieve will be as below:</p>
  
  <pre><code> var afterSort = [{
  "Apple": "value",
  "key": "value",
  "key": "value",
  "key": "value"
  },{
  "Cindy": "value",
  "key": "value",
  "key": "value",
  "key": "value"
  },{
  "James": "value",
  "key": "value",
  "key": "value",
  "key": "value"
  },{
  "Timmy": "value",
  "key": "value",
  "key": "value",
  "key": "value"
  },{
   "William": "value",
  "key": "value",
  "key": "value",
  "key": "value"
  }];
  </code></pre>
  
  <p>Is it technically possible?</p>