Использовать технику мультисортировки http://in.php.net/array_multisort
$array1 = array(0 => array('name' => somename1, 'Attributes' => array('Body' => somebody,
'Region' => someregion, 'State' => somestate, 'Url' => someurl, 'Date' => '26-02-2011', 'Tz' =>
sometz, 'Title' => sometitle, 'City' => somecity)),
1 => array('name' => somename2, 'Attributes' => array('Body' => somebody,
'Region' => someregion, 'State' => somestate, 'Url' => someurl, 'Date' => '25-02-2011', 'Tz' =>
sometz, 'Title' => sometitle, 'City' => somecity)));
foreach ($array1 as $index => $inner_arr) {
$attr = $inner_arr['Attributes'];
foreach ($attr as $key => $value) {
$date_arr[$index] = strtotime($attr['Date']);
}
}
//for multisort give date array as the array accoring to which the data to be sorted.
//We are dumping date into array and trying to sort data according tot he date array sorted.
array_multisort($date_arr,$array1);
//after sorting loop thru data
foreach ($array1 as $inner_arr) {
echo "name:". $inner_arr['name'];
foreach ($inner_arr['Attributes'] as $key => $value) {
echo "<br>$key: $value";
}
echo '<hr>';
}