在操场上尝试以下操作时,我收到以下错误:
Cannot invoke 'sort' with an argument list of type '([Int], (Int, Int) -> Bool)'
Run Code Online (Sandbox Code Playgroud)
let stuff = [1, 2, 3]
var sortedStuff = sort(stuff, { (left: Int, right: Int) -> Bool in left < right })
Run Code Online (Sandbox Code Playgroud)
难道我做错了什么?