I'm trying to sort out the sequence of individual array. How to use my another array list?
There is a predefined array:
$sortOrder = array("Night","Breakfast","Lunch","Dinner","Lying");
And this is it my original array content:
Array
(
[Normal] => Array
(
[Dinner] => Array
(
[avgtime] => 17,06
[avg] => 5.24
)
[Breakfast] => Array
(
[avgtime] => 04,25
[avg] => 4.96
)
[Lying] => Array
(
[avgtime] => 14,49
[avg] => 4.7
)
[Lunch] => Array
(
[avgtime] => 09,53
[avg] => 5.26
)
[Night] => Array
(
[avgtime] => 00,00
[avg] => 4.4
)
)
[High] => Array
(
[Dinner] => Array
(
[avg] => 9
[avgtime] => 17,35
)
)
[Low] => Array
(
[Night] => Array
(
[avg] => 3.5
[avgtime] => 02,35
)
[Breakfast] => Array
(
[avg] => 3.8
[avgtime] => 07,12
)
)
)
How can I order placed based on the list? Please help me, and thanks so much!