使用usort()函数排序二维数组
$a = [ ['year'=>1992,'month'=>4,'num'=>3], ['year'=>1993,'month'=>1,'num'=>2], ['year'=>1992,'month'=>2,'num'=>1]];usort($a, function($a_prev, $a_next) { if($a_prev['ye