diff --git a/src/backend/actions/search/search-action.ts b/src/backend/actions/search/search-action.ts index 84d66f848..1f12554db 100644 --- a/src/backend/actions/search/search-action.ts +++ b/src/backend/actions/search/search-action.ts @@ -35,7 +35,7 @@ export const SearchAction: Action = { const { sortBy = decorated.options?.sort?.sortBy || titlePropertyName, - direction = 'asc', + direction = decorated.options?.sort?.direction || 'asc', filters: customFilters = {}, perPage = 50, page = 1,