From 867014d0f4724dd34dc89d27184b4804073b4eff Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Fri, 6 Feb 2026 18:13:40 +0900 Subject: [PATCH] Don't filter by extra var lang when sorting by numeric value --- modules/document/document.model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/document/document.model.php b/modules/document/document.model.php index ee7165775..c12daa936 100644 --- a/modules/document/document.model.php +++ b/modules/document/document.model.php @@ -1558,13 +1558,13 @@ class DocumentModel extends Document if($searchOpt->isExtraVars) { $args->sort_eid = $args->sort_index; - $args->sort_lang = Context::getLangType(); if ($searchOpt->isExtraVarsSortAsNumber ?? false) { $args->sort_index = 'extra_sort.sort_value'; } else { + $args->sort_lang = Context::getLangType(); $args->sort_index = 'extra_sort.value'; } }