Howdy all..
Need some help sorting a multi-demenions array by date... the array looks something like
$arr[0]["name"] = "Rob";
$arr[0]["age"] = 65;
$arr[0]["date"] = "2002-10-12";
$arr[1]["name"] = "Jim";
$arr[1]["age"] = 23;
$arr[1]["date"] = "2002-12-25";
$arr[2]["name"] = "Mary";
$arr[2]["age"] = 54;
$arr[2]["date"] = "2001-10-12";
What I need to do is order it by date DESC and also reset the keys to the order of the dates... so after sorting the above exmaple would turn to:
$arr[0]["name"] = "Jim";
$arr[0]["age"] = 23;
$arr[0]["date"] = "2002-12-25";
$arr[1]["name"] = "Rob";
$arr[1]["age"] = 65;
$arr[1]["date"] = "2002-10-12";
$arr[2]["name"] = "Mary";
$arr[2]["age"] = 54;
$arr[2]["date"] = "2001-10-12";
Thanks in advance..