可能重复:
对多维数组进行排序
如何对以下数组进行排序?array_multisort 似乎没有做这项工作。
Array
(
[2009] => Array
(
[name] => 2009
[20100923WO2010107543A2] => 20100923WO2010107543A2
)
[2006] => Array
(
[name] => 2006
[20080403US20080078500A1] => 20080403US20080078500A1
)
[1984] => Array
(
[name] => 1984
)
)
排序形式
Array
(
[1984] => Array
(
[name] => 1984
)
[2006] => Array
(
[name] => 2006
[20080403US20080078500A1] => 20080403US20080078500A1
)
[2009] => Array
(
[name] => 2009
[20100923WO2010107543A2] => 20100923WO2010107543A2
)
)