Doc: fix example in Array sort_custom()
(cherry picked from commit 5e8e216ee0
)
This commit is contained in:
parent
f35e821d57
commit
f7bd6c1948
|
@ -298,7 +298,7 @@
|
||||||
static func sort(a, b):
|
static func sort(a, b):
|
||||||
if a[0] < b[0]:
|
if a[0] < b[0]:
|
||||||
return true
|
return true
|
||||||
return false
|
return false
|
||||||
|
|
||||||
var my_items = [[5, "Potato"], [9, "Rice"], [4, "Tomato"]]
|
var my_items = [[5, "Potato"], [9, "Rice"], [4, "Tomato"]]
|
||||||
my_items.sort_custom(MyCustomSorter, "sort")
|
my_items.sort_custom(MyCustomSorter, "sort")
|
||||||
|
|
Loading…
Reference in New Issue