diff --git a/src/app/search/controllers/SearchController.php b/src/app/search/controllers/SearchController.php index dd6c893324e8c447d075cdd667b044de9758b75e..3b42d6a0a5cc781125e55e460998585ad67024d3 100644 --- a/src/app/search/controllers/SearchController.php +++ b/src/app/search/controllers/SearchController.php @@ -147,7 +147,7 @@ class SearchController $offset = (int)$queryParams['offset']; } $order = !in_array($queryParams['order'], ['asc', 'desc']) ? '' : $queryParams['order']; - $orderBy = str_replace(['chrono', 'typeLabel', 'creationDate'], ['alt_identifier', 'type_label', 'creation_date'], $queryParams['orderBy']); + $orderBy = str_replace(['chrono', 'typeLabel', 'creationDate'], ['order_alphanum(alt_identifier)', 'type_label', 'creation_date'], $queryParams['orderBy']); $orderBy = !in_array($orderBy, ['alt_identifier', 'status', 'subject', 'type_label', 'creation_date']) ? ['creation_date'] : ["{$orderBy} {$order}"]; $allResources = ResModel::getOnView([