---
title: "Order object"
url: "https://help.internetx.com/en/api/core-order-object/"
lang: "en"
section: "API reference — API reference (XML/JSON)"
breadcrumb: "API documentation (JSON/XML) > Objects > General objects"
updated: "2023-09-20"
---

# Order object

## Description

The _order_ object is responsible for sorting the search result.

## Structure

| Key JSON | Key XML | Occurs | Format | Typ | Description |
| --- | --- | --- | --- | --- | --- |
| key | key | 0 - 1 | string |  | Keyword to be sorted by. |
| type | mode | 0 - 1 | enum | [OrderType](/en/api/core-order-type-enum/) | Sort order. |

## Example

```
    "orders": [
        {
            "key": "created",
            "type": "ASC"
        }
    ]
```

```
<order>
    <key>created</key>
    <mode>asc</mode>
</order>
```
