diff --git a/doc/base/classes.xml b/doc/base/classes.xml index e04ccc724d21..a067bf2c6f3f 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -5670,7 +5670,7 @@ - Sort the array using a custom method. The arguments are an object that holds the method and the name of such method. The custom method receives two arguments (a pair of elements from the array) and must return true if the first argument is less than the second, and return false otherwise. + Sort the array using a custom method. The arguments are an object that holds the method and the name of such method. The custom method receives two arguments (a pair of elements from the array) and must return true if the first argument is less than the second, and return false otherwise. Note: you cannot randomize the return value as the heapsort algorithm expects a deterministic result. Doing so will result in unexpected behavior.