No matter what i try I still cant sort an array.
 
$merged = array_merge ($new_skills, $selected);
    debug($merged);
Array
(
    [0] => Tree
    [1] => Zoo
    [2] => Hello
    [3] => Test
    [4] => Cool
    [5] => 3 Doors Down
    [6] => Yellow
)

 

    
    $sorted = natcasesort($merged);
    debug($sorted);

Array
(
  1
)
 

I simply want to sort the merged array alphbeticaly but everything just
returns 1

Tried sort();
array_multisort()
natsort();

Ideas?

Dave


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to