Let's there's an array that looks like this when printed out:
Array
(
[0] => B
[1] => E
[2] => A
[3] => D 4
[4] => D 3
[5] => D 2
[6] => D
[7] => C
[8] => G
[9] => F
)
Is there a way to make it look like this:
Array
(
[0] => B
[1] => E
[2] => A
[3] => D
[4] => D 2
[5] => D 3
[6] => D 4
[7] => C
[8] => G
[9] => F
)
So only sort the numeric values.
I've tried doing sort($array);
But this sorts it alphabetically
Anyone can help me out?
Thanks in advance!