title: how to get distinct values from json in jquery
body: <p>I've got a jquery json request and in that json data I want to be able to sort by unique values. so I have </p>
  
  <pre><code>{
    "people": [{
          "pbid": "626",
          "birthDate": "1976-02-06",
          "name": 'name'
        }, {
          "pbid": "648",
          "birthDate": "1987-05-22",
          "name": 'name'
        }, .....
  </code></pre>
  
  <p>So, far, i have this</p>
  
  <pre><code>function(data) {
    $.each(data.people, function(i, person) {
      alert(person.birthDate);
    })
  }
  </code></pre>
  
  <p>but, I am at a total loss as to how efficiently get only the unique birthDates, and sort them by year (or any sort by any other personal data). </p>
  
  <p>I'm trying to do this, and be efficient about it (i'm hoping that is possible). </p>
  
  <p>Thanks</p>