我有一个这样的数组:
$array = array($team => array('points' => x, 'runs' => y))
我汇总积分并与同一团队一起运行,结果是这样的:
[team1] => Array
(
[points] => 12
[runs] => 1
)
[team2] => Array
(
[points] => 11
[runs] => 3
)
[team3] => Array
(
[points] => 11
[runs] => 2
)
[team4] => Array
(
[points] => 8
[runs] => 3
)
我想通过运行DESC和点ASC对它进行排序。 就像:
[team4] => Array
(
[points] => 8
[runs] => 3
)
[team2] => Array
(
[points] => 11
[runs] => 3
)
[team3] => Array
(
[points] => 11
[runs] => 2
)
[team1] => Array
(
[points] => 12
[runs] => 1
)