Помогите отсортировать массив по ключам sizes и размерам (42, 46, 44) и sizes_mouth (42, 46, 40) по порядку (42, 44, 46...)
Array
(
[2521] => Array
(
[cost] => 0
[price] => 0
[sizes] => Array
(
[42] => Array
(
[size] => 42
)
[46] => Array
(
[size] => 46
)
[44] => Array
(
[size] => 44
)
)
[sizes_mouth] => Array
(
[42] => Array
(
[income] => 0
[order] => 15
)
[46] => Array
(
[income] => 0
[order] => 20
)
[40] => Array
(
[income] => 0
[order] => 18
)
)
)
)
Должно получиться так
Array
(
[2521] => Array
(
[cost] => 0
[price] => 0
[sizes] => Array
(
[42] => Array
(
[size] => 42
)
[44] => Array
(
[size] => 44
)
[46] => Array
(
[size] => 46
)
)
[sizes_mouth] => Array
(
[40] => Array
(
[income] => 0
[order] => 15
)
[42] => Array
(
[income] => 0
[order] => 20
)
[46] => Array
(
[income] => 0
[order] => 18
)
)
)
)