Below is my array, I want to sort it:
$arr = array('0-3 months', '9-12 months', '3-6 months', '6-9 months', '12-18 months', '18-24 months');
It responds with sort function like :
Array
(
[0] => 0-3 months
[1] => 12-18 months
[2] => 18-24 months
[3] => 3-6 months
[4] => 6-9 months
[5] => 9-12 months
)
I want in below manner :
Array
(
[0] => 0-3 months
[1] => 3-6 months
[2] => 6-9 months
[3] => 9-12 months
[4] => 12-18 months
[5] => 18-24 months
)
Any solutions?
Thanks
"x-y months"or are there other values? What about overlap? Etc.