summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-09-16 13:35:54 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-09-16 13:35:54 +0200
commitc86fcccf6818edd4f36e2d01bdecd0be2188c5e3 (patch)
tree1e252e7e32f18841c9e523dd876572d25d7334d4
parenta90660f5e2ee3b3da3e01f8e9279a219b993dd8f (diff)
parentc6f7c8914956498fc1d414688d3ee9683148fa2b (diff)
downloadredot-engine-c86fcccf6818edd4f36e2d01bdecd0be2188c5e3.tar.gz
Merge pull request #97033 from Daylily-Zeleen/daylily-zeleen/fix_sort_custom_description
Fix description of `Array.sort_custom()`.
-rw-r--r--doc/classes/Array.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/classes/Array.xml b/doc/classes/Array.xml
index f4dcc9bf68..2a06b98d06 100644
--- a/doc/classes/Array.xml
+++ b/doc/classes/Array.xml
@@ -714,7 +714,7 @@
<param index="0" name="func" type="Callable" />
<description>
Sorts the array using a custom [Callable].
- [param func] is called as many times as necessary, receiving two array elements as arguments. The function should return [code]true[/code] if the first element should be moved [i]behind[/i] the second one, otherwise it should return [code]false[/code].
+ [param func] is called as many times as necessary, receiving two array elements as arguments. The function should return [code]true[/code] if the first element should be moved [i]before[/i] the second one, otherwise it should return [code]false[/code].
[codeblock]
func sort_ascending(a, b):
if a[1] &lt; b[1]: