Hi all,
I seem to be hitting a bug with the /dwapi/query endpoint where SortBy and SortOrder are ignored entirely.
Setup
Custom Content repository query called "Article list", no default sort configured on the query itself. Calling with SortBy=PageUpdatedDate&SortOrder=DESC.
The problem
The results come back sorted by _score (relevance) instead of the requested field and direction. The response envelope always says "sortOrder": "asc" regardless of input, and SortBy has no effect.
Request:
Response (trimmed):
Results are ordered by _score / PageSort ASC, not by PageUpdatedDate DESC as requested.
Reproduction
Reproducible via Swagger UI with a clean query (no default sort set on the query definition).
Expected behavior
SortBy and SortOrder should override relevance scoring and sort by the specified field and direction.
We're on version 10.22.8
Best regards,
Arnór Geir