svn: /phpdoc/en/trunk/reference/array/functions/ sort.xml
| From: | Jakub Vrana | Date: | Thu, 30 May 2013 19:11:39 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/array/functions/ sort.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-11354@lists.php.net to get a copy of this message | ||
vrana Thu, 30 May 2013 19:11:39 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=330420
Log:
Choosing pivot in Quicksort
Changed paths:
U phpdoc/en/trunk/reference/array/functions/sort.xml
Modified: phpdoc/en/trunk/reference/array/functions/sort.xml
===================================================================
--- phpdoc/en/trunk/reference/array/functions/sort.xml 2013-05-30 16:54:00 UTC (rev 330419)
+++ phpdoc/en/trunk/reference/array/functions/sort.xml 2013-05-30 19:11:39 UTC (rev 330420)
@@ -190,6 +190,9 @@
Like most PHP sorting functions, <function>sort</function> uses an
implementation of <link
xlink:href="&url.wiki.quicksort;">Quicksort</link>.
+ The pivot is chosen in the middle of the partition resulting in an optimal
+ time for already sorted arrays. This is however an implementation detail you
+ shouldn't rely on.
</simpara>
</note>
<warning>