Do you know how to order this array in Descending order basing on the time_sent value?
I've been using some ksort or usort, but still it fails.
Your help would be greatly appreciated!
Thanks!
Array
(
[0] => Array
(
[time_sent] => 1343805651
)
[1] => Array
(
[time_sent] => 1343805328
)
[2] => Array
(
[time_sent] => 1343890728
)
[3] => Array
(
[time_sent] => 1343743340
)
[4] => Array
(
[time_sent] => 1343726917
)
[5] => Array
(
[time_sent] => 1343893364
)
)
try multisort :
array_multisort($array, SORT_DESC);