可能重复:
按值对多维数组排序 (2)
array(200) {
[0]=>
array(5) {
["cat"]=>
string(6) "Movies"
["name"]=>
string(22) "Life.of.Pi.2012.DVDSCR"
["url"]=>
string(62) "https://thepiratebay.se/torrent/8036528/Life.of.Pi.2012.DVDSCR"
["seed"]=>
string(5) "33981"
["leech"]=>
string(5) "18487"
}
[1]=>
array(5) {
["cat"]=>
string(6) "Movies"
["name"]=>
string(41) "Django Unchained 2012 DVDSCR X264 AAC-P2P"
["url"]=>
string(81) "https://thepiratebay.se/torrent/7990804/Django_Unchained_2012_DVDSCR_X264_AAC-P2P"
["seed"]=>
string(5) "34279"
["leech"]=>
string(5) "12256"
}
...
}
我有一个如上所示的数组,我想按种子指标对这个数组进行排序。如何在php中实现这一点?