Array ( [0] => Array ( [dateTime] => 2011-10-18 0:0:00 [chanl1] => 20.7
Simple sorting for DateTime objects with the spaceship operator:
$list = [ new DateTime('yesterday'), new DateTime('today'), new DateTime('1 week ago'), ]; uasort($list, function ($a, $b) { return $a <=> $b; }); var_dump($list);