sort giving strange results
- by Jay
I have an array of email addresses that I am trying to sort, but I'm getting odd results. Here is what I mean:
sort($array);
print_r($array);
...[79] => 91******@******.com [80] => 9l***@**********.com
[81] => ps*******@**********.com [82] => a.c******@*****.com
[83] => a.d****@*****.com...
What would cause that email beginning with p's to be mixed in after the numbers and before the A's?
I removed that email address from the database and replaced it with "testing" and then "testing" appeared in the same position.