Objective-C
NSDate * pastDate;
NSDate * futureDate;
BOOL correctOrder = ( [futureDate compare: pastDate] == NSOrderedDescending );
Swift
let pastDate: NSDate
let futureDate: NSDate
let correctOrder = ( futureDate.compare( pastDate ) == NSComparisonResult.OrderedDescending )
or
let correctOrder = ( futureDate.compare( pastDate ) == .OrderedDescending )