max(ofProperty:)

public func max<T: MinMaxType>(ofProperty property: String) -> T?

Returns the maximum (highest) value of the given property among all the results, or nil if the results are empty.

Warning

Only a property whose type conforms to the MinMaxType protocol can be specified.