A Boolean value that determines whether the query groups the results based on the quantity sample’s start date.
- iOS 13.0+
- Mac Catalyst 13.0+
- watchOS 6.0+
By default the query returns all the quantities in ascending order based on their start date. If you set this property to
YES, HealthKit first sorts the matching
HKQuantity objects by their
start parameter. Then, for each sample, it returns all the quantity objects in ascending order. If the sample objects overlap, then the quantities may not appear in ascending order when switching from one sample to the next.