I think this can help you
I convert the time to the int and then compare it
And you ['fecha'][0]
for getting the time
function date_compare($a, $b)
{
$t1 = strtotime($a['fecha'][0]);
$t2 = strtotime($b['fecha'][0]);
return $t1 - $t2;
}
$NuevoArrayPedidos = usort($ArrayPedidos, 'date_compare');
return $NuevoArrayPedidos;
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…