mirror of
https://github.com/directus/directus.git
synced 2026-02-12 04:34:56 -05:00
12 lines
426 B
YAML
12 lines
426 B
YAML
description: >
|
|
How to sort the returned items.
|
|
`sort` is a CSV of fields used to sort the fetched items.
|
|
Sorting defaults to ascending (ASC) order but a minus sign (` - `) can be used to reverse this to descending (DESC) order. Fields are prioritized by their order in the CSV. You can also use a ` ? ` to sort randomly.
|
|
in: query
|
|
name: sort
|
|
required: false
|
|
explode: false
|
|
schema:
|
|
type: array
|
|
items:
|
|
type: string |