---
title: "SortQuery"
url: "https://nov18-dev.movespot.fyi/apis/portal-dev-3/versions/0ea1a7e4-e18f-432b-8fae-5d43a97118ce/schemas/SortQuery"
---

> Full API specification: https://nov18-dev.movespot.fyi/apis/portal-dev-3/versions/0ea1a7e4-e18f-432b-8fae-5d43a97118ce.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.0
info:
  title: Portal
  version: 3.3.0
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
```
