---
title: EntityQuerySort
framework: appintents
role: symbol
role_heading: Structure
path: appintents/entityquerysort
---

# EntityQuerySort

The properties to use to sort the results when the query runs.

## Declaration

```swift
struct EntityQuerySort<Entity> where Entity : AppEntity
```

## Topics

### Getting the property details

- [by](appintents/entityquerysort/by.md)

### Getting the sort order

- [order](appintents/entityquerysort/order.md)
- [EntityQuerySort.Ordering](appintents/entityquerysort/ordering.md)

## See Also

### Sort options

- [EntityQuerySortingOptions](appintents/entityquerysortingoptions.md)
- [EntityQuerySortableByProperty](appintents/entityquerysortablebyproperty.md)
