A Rule for validation and trait with a scope. Primarily used to enable easy sorting in API endpoints.
Sorting is determined through the use of the ‘sort’ (for example) query string parameter.
The value of this parameter is a comma-separated list of sort keys. The default sort direction is asc, but can optionally be changed to desc by prefixing any key with "-".