The Array type in Swift has a member function called sort, with its signature being sort(isOrderedBefore: (T, T) -> Bool). This fun
Array
sort
sort(isOrderedBefore: (T, T) -> Bool)
Chris Lattner suggests qualifying the name of the global function with Swift's default namespace, Swift. So you should be able to access the global version using: Swift.sort.
Swift
Swift.sort