I have the following multidimensional array that is being created from a loop. the 'date' is in the format of 'Ymd'. (I'm doing this because I have 2 different date fields coming in in different formats and I want to combine them and sort by a common format)
$myArray = array (
'date' => $eDate,
'title' => $title,
'permalink' => $permalink
);
How would I write a simple comparison function to pass into the usort() so that I could sort by that key of 'date'? So then I could do a simple foreach?