[PHP-DEV] Bug #1086: sort() does not compare after first word From: dreich <email protected>
Date: 01/21/99

From: dreich <email protected>
Operating system: Linux Kernel 2.0.36
PHP version: 3.0.5
PHP Bug Type: Misbehaving function
Bug description: sort() does not compare after first word

Here's the situation, I create an array with a series of strings like so:

$BigArray = array("HOWTO talk", "HOWTO listen", "HOWTO be quiet");

and then I run sort() against the array. The problem is sort doesn't seem to look beyond the first word within the array. In theory after sort it should appear in this order:

HOWTO listen
HOWTO talk
HOWTO be quiet

but what I get is the original order.

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>