I've this array:
[0] => Array
(
[0] => 0
[1] => 1
)
[1] => Array
(
[0] => 3
[1] => 4
)
[2] => Array
(
[0] => 2
)
I need to sort the values to obtain an array, sorted by single array values, like:
[0] => Array
(
[0] => 0
[1] => 1
)
[2] => Array
(
[0] => 2
)
[1] => Array
(
[0] => 3
[1] => 4
)
The values (0,1,2,3,4) are unique and represents the days of the week, so, I can have maximum 7 unique values.
I've tried with usort but unsuccessfully. Any ideas? Thanks a lot