Skip to content
For AI agents: the complete documentation index is available at llms.txt; this page is also available as Markdown at index.md.

CreatedAt Sort Clause

The CreatedAt Sort Clause sorts search results by the date and time of the creation of a product.

Arguments

  • (optional) sorting direction, either ascending (default) or descending

Example

You can use this Sort Clause over the REST API, in the SortClauses element of the payload of the POST /product/catalog/products/view request:

1
2
3
4
5
<ProductQuery>
    <SortClauses>
        <CreatedAt>ascending</CreatedAt>
    </SortClauses>
</ProductQuery>
1
2
3
4
5
"ProductQuery": {
    "SortClauses": {
        "CreatedAt": "ascending"
    }
}