Attempting to sort on a one-to-many relationship


The spec calls outs an example of sorting on a one-to-one relationship (e.g., but does not make mention of what should happen if a sort is requested against one-to-many relationship (e.g. comments.body).

While actually trying to perform this sort does not make sense, what would the best response be? 400? Sort the relationship in question?


All data types would have a natural sort order, I would imagine that sort would then put the bodies in alphabetical order. It might not make a ton of sense in a blog example, but I don’t really see any particular reason to assume the sort should fail.

Therefor I would say sort away.