How would you sort a multidimensional array by descending value? I've come up with this but it doesn't function.
$data = [
0 => array(
"Date" => "2016-05-04 12:00:00"
),
1 => array(
"Date" => "2016-05-04 10:00:00"
)
]
PHP
uasort($data, function($a, $b) {
return $a['Date'] - $b['Date'];
});