---
title: QuerySort
framework: Apple Ads Platform API
role: symbol
role_heading: Object
platforms: [apple ads platform api 1.0+]
path: apple-ads-platform-api/querysort
---

# QuerySort

A sort directive in a query request, specifying a field and direction.

## Declaration

```data
object QuerySort
```

## Properties

field: The name of the field to sort on (for example, id, name). order: The sort direction for the specified field. Valid values: ASC, DESC.

## Discussion

Discussion The QuerySort defines one sort directive in a QueryRequest.sorting array. The query applies multiple QuerySort entries in order: the first entry is the primary sort, subsequent entries are tiebreakers. Example {   "field": "name",   "order": "ASC" }

## See Also

### Query Objects

- [QueryRequest](apple-ads-platform-api/queryrequest.md)
- [QueryFilter](apple-ads-platform-api/queryfilter.md)
- [QueryPagination](apple-ads-platform-api/querypagination.md)
- [QueryResponse](apple-ads-platform-api/queryresponse.md)
- [QueryPaginationResult](apple-ads-platform-api/querypaginationresult.md)
