---
title: "SortQuery"
url: "https://nov18-dev.movespot.fyi/apis/portal-api-catalog-3/versions/d7aa963d-b594-41d6-a905-3097c44bd297/schemas/SortQuery"
---

> Full API specification: https://nov18-dev.movespot.fyi/apis/portal-api-catalog-3/versions/d7aa963d-b594-41d6-a905-3097c44bd297.md

# SortQuery

The `asc` suffix is optional as the default sort order is ascending. The `desc` suffix is used to specify a descending order. Multiple sort attributes may be provided via a comma separated list. JSONPath notation may be used to specify a sub-attribute (eg: 'foo.bar desc').

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: Portal API Catalog
  version: 3.0.11
components:
  schemas:
    SortQuery:
      description: >
        The `asc` suffix is optional as the default sort order is ascending.

        The `desc` suffix is used to specify a descending order.

        Multiple sort attributes may be provided via a comma separated list.

        JSONPath notation may be used to specify a sub-attribute (eg: 'foo.bar
        desc').
      type: string
      example: created_at desc
      title: SortQuery
```
