SyntaxFix
Write A Post
Hire A Developer
Questions
in Swift 3,4 you should use "Compare". for example:
DateArray.sort { (($0)?.compare($1))! == .orderedDescending }