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
{ \"people\": [{ \"pbid\": \"626\",
Here's my take:
function getUniqueBirthdays(data){ var birthdays = []; $.each(data.people, function(){ if ($.inArray(this.birthDate,birthdays) === -1) { birthdays.push(this.birthDate); } }); return birthdays.sort(); }