I\'m updating my app to Swift 3.0 syntax (I know it\'s still in beta but I want to be prepared as soon as it released).
Until the previous Beta of Xcode (Beta 5) I wa
in Swift 3,4 you should use "Compare". for example:
DateArray.sort { (($0)?.compare($1))! == .orderedDescending }