It is possible to sort some records lists by most of its attributes using sort_by
array-like query param - multiple attributes may provided.A sort direction (ASC, DESC
) for each attribute may by provided with sort_directions
array-like param. When not provided, ASC
is used.Also, a locale
parameter may be provided to specify which language should be used when sorting localized content.Example query:#
?sort_by[]=status&sort_by[]=title&sort_directions[]=DESC&locale=no
It is equivalent to following SQL query: Modified at 2024-05-06 16:31:44