fix #21278: unpredictable results of sort

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@159269 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Nuno Lopes 2004-05-21 13:54:49 +00:00
parent 58a08565cc
commit 043ff4ec30

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.11 $ -->
<!-- $Revision: 1.12 $ -->
<!-- splitted from ./en/functions/array.xml, last change in rev 1.2 -->
<refentry id="function.sort">
<refnamediv>
@ -83,6 +83,12 @@ fruits[3] = orange
The second parameter was added in PHP 4.
</para>
</note>
<warning>
<simpara>
Be carefull when sorting arrays with mixed types values because
<function>sort</function> can produce unpredictable results.
</simpara>
</warning>
<para>
See also <function>arsort</function>,
<function>asort</function>, <function>ksort</function>,