You can use usort() and write your own comparison function (a function that compares between "objects" - the inner arrays).
Since the dates are written in a way that enables simple string comparison you can do as follows:
<?php
function compare($arr1, $arr2) {
$date1 = $arr1[0];
$date2 = $arr2[0];
if($date1 > $date2){
$ans = 1;
}
else if($date2 > $date1){
$ans = -1;
}
else{
$ans = 0;
}
return $ans;
}
$arr = array(array("date"=>"2013-01-25", "content"=>"ref"),
array("date"=>"2013-02-25", "content"=>"ref2"),
array("date"=>"2013-03-25", "content"=>"ref3")
);
usort($arr, "compare");
print_r($arr);
?>
OUTPUT:
Array
(
[0] => Array
(
[date] => 2013-03-25
[content] => ref3
)
[1] => Array
(
[date] => 2013-02-25
[content] => ref2
)
[2] => Array
(
[date] => 2013-01-25
[content] => ref
)
)