note 102700 deleted from function.usort by danbrown

[email protected] Tue, 1 Mar 2011 06:17:13 -0800
Newsgroups php.notes
Message-ID <[email protected]>
Note Submitter: cuong dot huy dot to at gmail dot com 

----

Probably a bug or undocumented feature: usort() sort your list even if you don't want to.

Detail: If you call usort($your_list, "your_call_back_function"), where inside the your_call_back_function() you return 0 immediately, then you would expect $your_list to be unchanged. But in fact it is changed.