Are there any functions in Swift 2 that will sort single-dimensional Arrays of NSDate in ascending or descending order without writing my own sorting algorithm?
I've tried the following, but > cannot be used to compare two NSDate objects unfortunately.
var array = [NSDate]()
array.sort { $0 < $1 }