【发布时间】:2014-03-02 23:16:27
【问题描述】:
如何对以下数组进行排序
Array
(
[17] => Array
(
[network_id] => 17
[network_name] => M4N
[total_transactions] => 4
[commission] => 6.08
[ordervalue] => 101
[pending] => 0
[approved] => 4
)
[18] => Array
(
[network_id] => 18
[network_name] => Zanox
[total_transactions] => 32
[commission] => 33.7
[ordervalue] => 1010.45
[pending] => 0
[approved] => 32
)
)
我想通过以下排序选项对上述数组进行排序
- 交易数量(从高到低)
- 佣金(从高到低)
- 订单价值(从高到低)
我正在尝试使用 array_multisort 对其进行排序,但到目前为止还没有成功
【问题讨论】: