REST API: Allow ordering on the resource level

This will allow `filter[order]=ASC` to switch from DESC to ASC. Invalid values are ignored.