> For the complete documentation index, see [llms.txt](https://docs.craft.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.craft.co/alerts-api/alerts-api-reference/order-object.md).

# Order Object

By default, Alerts API provides output sorted by `publishedAt` field in descending order (most recently published Alerts first).

### AlertOrderBy

| Field       | Type                                                                              | Description                                 |
| ----------- | --------------------------------------------------------------------------------- | ------------------------------------------- |
| publishedAt | [AlertSortOrder](/alerts-api/alerts-api-reference/order-object.md#alertsortorder) | Allows specifying the desired sorting order |

### AlertSortOrder

This is a GraphQL enum, specifying allowed sorting orders

```graphql
enum AlertSortOrder {
  """
  Specifies descending sort order.
  """
  DESC

  """
  Specifies ascending sort order.
  """
  ASC
}
```
