summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaylily-Zeleen <daylily-zeleen@foxmail.com>2024-09-15 15:52:50 +0800
committerRémi Verschelde <rverschelde@gmail.com>2024-09-17 08:57:46 +0200
commitabe68d397ed006978247190dc55fa96a29df98cd (patch)
treebe181abf6262018d55681971fa3bac373d6792a1
parent7246e1488e3447fc80e37c5092cadd7f52423cd7 (diff)
downloadredot-engine-abe68d397ed006978247190dc55fa96a29df98cd.tar.gz
Fix description of `Array.sort_custom()`
(cherry picked from commit c6f7c8914956498fc1d414688d3ee9683148fa2b)
-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 34dffe6387..79e74c4cc4 100644
--- a/doc/classes/Array.xml
+++ b/doc/classes/Array.xml
@@ -715,7 +715,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]: