---
title: sortDescriptors
framework: healthkit
role: symbol
role_heading: Instance Property
path: healthkit/hksamplequery/sortdescriptors
---

# sortDescriptors

The sort descriptors that specify the order of the results returned by this query.

## Declaration

```swift
var sortDescriptors: [NSSortDescriptor]? { get }
```

## See Also

### Getting Property Data

- [limit](healthkit/hksamplequery/limit.md)
