mirror of
https://github.com/directus/directus.git
synced 2026-01-23 00:28:10 -05:00
412 B
412 B
Sorting
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.
Examples
# Sorts by name ASC
?sort=name
# Sorts by name ASC, followed by age DESC
?&sort=name,-age
# Sorts by name ASC, followed by age DESC
?sort=name,-age