I'm using this code...
function sortbydate($a,$b){
$a = ereg_replace('([0-9]).([0-9]).([0-9])','\2/\1/\3', $a);
$b = ereg_replace('([0-9]).([0-9]).([0-9])','\2/\1/\3', $b);
$var1 = strtotime($a);
$var2 = strtotime($b);
if($var1 == $var2) return 0;
return ($var1 > $var2) ? -1 : 1; }
usort($array, sortbydate);
...but the newest appears on bottom of the page, I want it to appear on top of the page.
Anyone?