---
title: "SortQuery"
url: "https://nov18-dev.movespot.fyi/apis/portal-api-catalog-dev-3/versions/861ffb03-94d9-4545-a275-2893d1e5641b/schemas/SortQuery"
---

> Full API specification: https://nov18-dev.movespot.fyi/apis/portal-api-catalog-dev-3/versions/861ffb03-94d9-4545-a275-2893d1e5641b.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
```
