You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 19:11:41 +00:00
Doc: fix example in Array sort_custom()
This commit is contained in:
@@ -321,7 +321,7 @@
|
||||
static func sort(a, b):
|
||||
if a[0] < b[0]:
|
||||
return true
|
||||
return false
|
||||
return false
|
||||
|
||||
var my_items = [[5, "Potato"], [9, "Rice"], [4, "Tomato"]]
|
||||
my_items.sort_custom(MyCustomSorter, "sort")
|
||||
|
||||
Reference in New Issue
Block a user