---
title: HKSampleSortIdentifierEndDate
framework: healthkit
role: symbol
role_heading: Global Variable
path: healthkit/hksamplesortidentifierenddate
---

# HKSampleSortIdentifierEndDate

A constant for sorting samples based on their end date.

## Declaration

```swift
let HKSampleSortIdentifierEndDate: String
```

## See Also

### Specifying Sort Identifiers

- [HKSampleSortIdentifierStartDate](healthkit/hksamplesortidentifierstartdate.md)
