---
updatedAt: 2026-01-22T11:09:45.000Z
---

# Sort Items

Reports that the user changed the sorting of a product list

> ❗️ This event is currently available for script implementation only

### Parameters

* **name:** Human-readable name, not used to identify an event type
* **properties:** A container for the event properties as specified in the following table:

| Property      | Description                                                                        | Type   |
| :------------ | :--------------------------------------------------------------------------------- | :----- |
| **dyType**    | Must be "sort-items-v1"                                                            | String |
| **sortBy**    | Sorting parameter, such as price, age, popularity, rating, or any other you allow. | String |
| **sortOrder** | ASC or DESC                                                                        | String |

**Example: Implementation via script**

```javascript
DY.API("event", {
  name: "Sort Items",
  properties: {
    dyType: "sort-items-v1",
    sortBy: "PRICE",
    sortOrder: "ASC"
  }
});
```

> 👍 Go to the [API reference for the Events endpoint](https://dy.dev/dy-dev/reference/track-events) to learn more.