See the manual for the function usort()
Basically you will be telling the sort algorithm how to determine the sort order.
usort ($myArray, "cmp");
function cmp ($a, $b) {
// The usort function is sending you two dates $a and $b.
// Use your own logic to compare them and return 0,1,-1 as appropriate.
}
--
Roger