From 043ff4ec30f51456043f1bb2b50d899d87ad48d9 Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Fri, 21 May 2004 13:54:49 +0000 Subject: [PATCH] fix #21278: unpredictable results of sort git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@159269 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/array/functions/sort.xml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/reference/array/functions/sort.xml b/reference/array/functions/sort.xml index b49927df2f..4822a103e3 100644 --- a/reference/array/functions/sort.xml +++ b/reference/array/functions/sort.xml @@ -1,5 +1,5 @@ - + @@ -83,6 +83,12 @@ fruits[3] = orange The second parameter was added in PHP 4. + + + Be carefull when sorting arrays with mixed types values because + sort can produce unpredictable results. + + See also arsort, asort, ksort,