Merge pull request #97033 from Daylily-Zeleen/daylily-zeleen/fix_sort_custom_description
Fix description of `Array.sort_custom()`.
This commit is contained in:
commit
c86fcccf68
1 changed files with 1 additions and 1 deletions
|
@ -714,7 +714,7 @@
|
||||||
<param index="0" name="func" type="Callable" />
|
<param index="0" name="func" type="Callable" />
|
||||||
<description>
|
<description>
|
||||||
Sorts the array using a custom [Callable].
|
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]
|
[codeblock]
|
||||||
func sort_ascending(a, b):
|
func sort_ascending(a, b):
|
||||||
if a[1] < b[1]:
|
if a[1] < b[1]:
|
||||||
|
|
Loading…
Reference in a new issue