mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Small doc formating changes and Linux cursor theme note
(cherry picked from commit 79ab43299a)
This commit is contained in:
committed by
Rémi Verschelde
parent
67a108b196
commit
e2267c80a0
@@ -292,7 +292,8 @@
|
||||
<argument index="1" name="func" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
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.
|
||||
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.
|
||||
[b]Note:[/b] 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):
|
||||
|
||||
Reference in New Issue
Block a user