I want to know that how can we use sort or sorted function for multidimensional array in Swift?
sort
sorted
For example theirs an array:
in Swift 3,4 you should use "Compare". for example:
let sortedArray.sort { (($0[0]).compare($1[0]))! == .orderedDescending }