nlopess Fri May 21 09:54:49 2004 EDT
Modified files:
/phpdoc/en/reference/array/functions sort.xml
Log:
fix #21278: unpredictable results of sort
http://cvs.php.net/diff.php/phpdoc/en/reference/array/functions/sort.xml?r1=1.11&r2=1.12&ty=u
Index: phpdoc/en/reference/array/functions/sort.xml
diff -u phpdoc/en/reference/array/functions/sort.xml:1.11
phpdoc/en/reference/array/functions/sort.xml:1.12
--- phpdoc/en/reference/array/functions/sort.xml:1.11 Tue May 4 15:56:18 2004
+++ phpdoc/en/reference/array/functions/sort.xml Fri May 21 09:54:49 2004
@@ -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 @@
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>,