I have a JavaScript multidimensional array:
var people = [
{ id: 1, name: "Hannah", birthdate: "04/16/2002" },
{ id: 2, name: "Sofia", birthdate: "03/18/2012" },
{ id: 3, name: "Robert", birthdate: "12/22/1997" },
];
How can I sort them by their birthday date?
2
Answers
you sort a birthday date value like:
DOCS HERE