我有这个数组:
Array
(
[0] => 0px 0px
[1] => -101px 0px
[2] => -205px -3px
[3] => 0px -77px
[4] => -100px -80px
[5] => -202px -80px
)
我想对其进行排序以便拥有:
Array
(
[0] => -202px -80px
[1] => -100px -80px
[2] => 0px -77px
[3] => -205px -3px
[4] => -101px 0px
[5] => 0px 0px
)
根据我的研究, ksort() 应该可以解决问题,但我有 1 个。
有人可以告诉我我做错了什么。谢谢