<!--
{
  "availability" : [
    "iOS: 15.4.0 -",
    "iPadOS: 15.4.0 -",
    "macCatalyst: 15.4.0 -",
    "macOS: 13.0.0 -",
    "visionOS: -",
    "watchOS: 8.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKQuantitySeriesSampleQueryDescriptor/Options-swift.struct/orderByQuantitySampleStartDate",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "s:9HealthKit37HKQuantitySeriesSampleQueryDescriptorV7OptionsV015orderByQuantityE9StartDateAEvpZ"
  },
  "title" : "orderByQuantitySampleStartDate"
}
-->

# orderByQuantitySampleStartDate

An option indicating that the results are grouped by the containing quantity sample’s start date.

```
static let orderByQuantitySampleStartDate: HKQuantitySeriesSampleQueryDescriptor.Options
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)