I have an array of NSDates in swift. The dates are only hours and minutes. I have tried
times.sortInPlace({ $0.date.compare($1.date) == NSComparisonResult.OrderedAscending })
but I get an error "Static member 'date' cannot be used on instance of type 'NSDate' and I get the same error with the 1970 attempt as well.