アルファベット順とサイズ順の両方でソートしようとしている多次元連想配列があります。現在取得している例を確認してください。ただし、意味がある場合は、サイズの並べ替えを編集せずに、キー「ACC、ABB、AAB」をアルファベット順に並べ替えたいと考えています。
arsort($myarray);
// Returns an array sorted by its value size from biggest to smallest but need to to also sort it keys alpabetically without amongest keys that have the same size.
$myArray = Array ( <--- Arrange this alphabetically and by size
[AAA] => Array ( is 1st
[1] => 1
[2] => 1
[3] => 1
[4] => 1
)
[ACC] => Array ( should be 3rd
[1] => 1
[2] => 1
)
[ABB] => Array ( should be 2nd
[1] => 1
[2] => 1
)
[AAB] => Array ( should be 1st
[1] => 1
[2] => 1
)
[AA] => Array ( is 1st
[1] => 1
)
[AB] => Array ( is 2nd
[1] => 1
)
)