[PHP-DEV] Array-sorting acting strangely?? From: Kasper Skårhø (kasper <email protected>)
Date: 05/09/00

Sorting an array with values of mixed types (strings and integers) results in something which doesn't seem to be a sorted list of the values!

In my particular case I have an array where the keys are associative and a mix of strings and integers. When I sort the array (ksort) the keys are not sorted correctly in any way. If I sort it again it's even differently sorted!

Try the attached script.

Guds fred ;-)

Kasper
--------------------- o ------------------------
www.typo3.dk

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>