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

# AuditSorting

A sort directive in an audit query request, specifying a field to sort by and the direction.

## Declaration

```data
object AuditSorting
```

## Properties

field: The name of the field to sort by. Common values: eventTime, entityType, eventType, userType. order: The sort direction. See AuditSortOrder. Defaults to DESC.

## Discussion

Discussion Include one or more AuditSorting entries in the sorting array of an AuditQuery request to control the order of results. When you omit this array, the API returns results sorted by eventTime descending (most recent first). "sorting": [   { "field": "eventTime", "order": "DESC" } ] The API applies multiple sort directives in order. The first directive is the primary sort. Subsequent entries break ties. Example {   "field": "eventTime",   "order": "DESC" }

## See Also

- [AuditQuery](apple-ads-platform-api/auditquery.md)
- [AuditFilter](apple-ads-platform-api/auditfilter.md)
- [Pagination](apple-ads-platform-api/pagination.md)
