Merge pull request #22420 from PiOverFour/master
Doc: fix example in Array sort_custom()
This commit is contained in:
commit
525b8fdab3
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Reference in a new issue