Sorting
http
GET /books?sort=-publishedAt,titlesort takes a comma-separated field list. A - prefix means descending, and the order of the fields sets the priority order. Only fields on the sort.fields allowlist can be used.
If a request supplies no sort at all, the entity's configured sort.default applies, if it has one — the same wire shorthand, e.g. sort: { default: ["-publishedAt", "title"] }. A client-supplied sort always wins outright over that default. It doesn't merge with it.