Order should use json_key_format I think that includes should use json_route_format ? e.g. `Resource.includes(:included_resource).order(:attribute_name) `