aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Hilbrunner2018-05-25 16:55:56 +0200
committerHein-Pieter van Braam2018-06-01 17:50:56 +0200
commit8dc021925fa5bb9f5917e811b4bd5ca2b8015f01 (patch)
treeef4372f5fc4fdb77c6d4497ce6a5d909638bb751
parent6843ccf462b501f11b78b438c4b28d49a4ab8076 (diff)
downloadgodot-8dc021925fa5bb9f5917e811b4bd5ca2b8015f01.tar.gz
godot-8dc021925fa5bb9f5917e811b4bd5ca2b8015f01.tar.zst
godot-8dc021925fa5bb9f5917e811b4bd5ca2b8015f01.zip
[DOCS] Array sort
(cherry picked from commit 9115d84913f30d35997cf3e2c26b86ebccd36f0e)
-rw-r--r--doc/classes/Array.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/classes/Array.xml b/doc/classes/Array.xml
index b355cb500..a82f4efff 100644
--- a/doc/classes/Array.xml
+++ b/doc/classes/Array.xml
@@ -274,7 +274,7 @@
</method>
<method name="sort">
<description>
- Sort the array using natural order and return reference to the array.
+ Sort the array using natural order.
</description>
</method>
<method name="sort_custom">
@@ -283,7 +283,7 @@
<argument index="1" name="func" type="String">
</argument>
<description>
- Sort the array using a custom method and return reference to the array. 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.
+ 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.
[codeblock]
class MyCustomSorter:
static func sort(a, b):