如何对下面的数组进行排序,以便顶部的较大值和键不会更改。
Array
(
[8] => 2
[9] => 2
[10] => 1
[12] => 1
[16] => 1
[17] => 1
[18] => 1
[19] => 1
[20] => 2
[23] => 1
[24] => 2
[25] => 2
[27] => 1
[50] => 2
[4] => 1
[14] => 1
)
谢谢