An object used to sort records containing location data.
- iOS 8.0+
- macOS 10.10+
- tvOS 9.0+
- watchOS 3.0+
You can add a location sort descriptor to your queries when searching for records. At creation time, you must provide the sort descriptor with a key whose value is a
CLLocation object. The sort descriptor uses the value of that key to perform the sort.
Distances are computed by drawing a direct line between the two locations that follows the curvature of the Earth. Distances do not take into account altitude changes between the two locations.