title: Storing and then Sorting multiple Json objects
body: <p>I read this <a href="https://stackoverflow.com/questions/979256/how-to-sort-an-array-of-javascript-objects">Sorting an array of JavaScript objects</a> excellent post on how to sort the objects retrieved from Json. However, I couldn't find a way if I want to access particular element of the array. For example, </p>
  
  <p>if we have this -:</p>
  
  <pre><code>var homes = [{
     "h_id": "3",
     "city": "Dallas",
     "state": "TX",
     "zip": "75201",
     "price": "162500"
  }, {
     "h_id": "4",
     "city": "Bevery Hills",
     "state": "CA",
     "zip": "90210",
     "price": "319250"
  }, {
     "h_id": "5",
     "city": "New York",
     "state": "NY",
     "zip": "00010",
     "price": "962500"
  }];
  </code></pre>
  
  <p>In my array I have objects like </p>
  
  <pre><code>for (i to n)
  var date = -----something----
  var message = -----something----
      var homes=[{date,message}]
  </code></pre>
  
  <p>Now after sorting, if I wish to access date and store it somewhere, How will I do that? </p>
  
  <p>Any help would be greatly appreciated.</p>
  
  <p>Thanks</p>