refactor(document): revert resolveSort to private

No test calls resolveSort directly — the sort tests assert through
searchDocuments + ArgumentCaptor<Pageable>, so the package-private widening
added no value. Narrow the API surface back to private.

Refs #668

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-05-27 19:06:16 +02:00
parent a345bba74b
commit eacfd15f8e

View File

@@ -802,7 +802,7 @@ public class DocumentService {
return transcriptionBlockQueryService.getCompletionStats(docIds);
}
Sort resolveSort(DocumentSort sort, String dir) {
private Sort resolveSort(DocumentSort sort, String dir) {
Sort.Direction direction = "ASC".equalsIgnoreCase(dir) ? Sort.Direction.ASC : Sort.Direction.DESC;
if (sort == null || sort == DocumentSort.DATE || sort == DocumentSort.RELEVANCE) {
// Undated documents (null documentDate) must order last regardless of