Sorting
Sorting usually happens with no developer intervention, instead handled automatically by an Adapter. To customize:
A real-life example might be sorting on a different table. Let’s say an
Employee has many Positions, and title
lives in the positions
table:
Note: the same
sort
proc will fire for every sort parameter supplied in the request. In other words, yes - you can multisort!
Sorting Relationships
Prefix the sort parameter with the relevant JSONAPI Type like so: