我有一个关联数组,但我想按照' cat_name
对它们进行排序$test = Array
(
[0] => Array
(
[cat_id] => 5
[cat_name] => Resolution
)
[1] => Array
(
[cat_id] => 6
[cat_name] => Speed
)
[2] => Array
(
[cat_id] => 7
[cat_name] => Accuracy
)
)
当我进行排序($ test)时,它按照' cat_id'的顺序对数组进行排序,如何按照' cat_name'对其进行排序?