Date: 05/09/00
- Next message: tswan <email protected>: "[PHP-DEV] PHP 4.0 Bug #4362: Set an include_path from script"
- Previous message: Bocskai Stefan: "[PHP-DEV] New Class"
- Next in thread: Andrei Zmievski: "Re: [PHP-DEV] Array-sorting acting strangely??"
- Reply: Andrei Zmievski: "Re: [PHP-DEV] Array-sorting acting strangely??"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- application/octet-stream attachment: arraysort-bug.php3
-- 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>
- Next message: tswan <email protected>: "[PHP-DEV] PHP 4.0 Bug #4362: Set an include_path from script"
- Previous message: Bocskai Stefan: "[PHP-DEV] New Class"
- Next in thread: Andrei Zmievski: "Re: [PHP-DEV] Array-sorting acting strangely??"
- Reply: Andrei Zmievski: "Re: [PHP-DEV] Array-sorting acting strangely??"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

