> For the complete documentation index, see [llms.txt](https://changelog.usetoggle.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://changelog.usetoggle.com/november-2024/06-11-2024-order-of-orders-query.md).

# 06/11/2024 - Order of Orders Query

## :left\_right\_arrow: Order Query Ordering

You can now order the `Orders` graphql query by `asc` or `desc` (default) using the `sort_direction` argument. This allows you to retrieve the oldest orders first if required.&#x20;

&#x20;`query{ Orders( ..., sort_direction:"asc" ){ data{ id, created_at } total, per_page } }`&#x20;

:woman\_technologist: Jules
