diff --git a/apps/maarch_entreprise/indexing_searching/documents_list_mlb_search_adv.php b/apps/maarch_entreprise/indexing_searching/documents_list_mlb_search_adv.php
index 5be9e8929bb44cce6149729082d85a92f0ee48a3..f8480a5a9dc1b3941c96a40491b08ee8e736e520 100755
--- a/apps/maarch_entreprise/indexing_searching/documents_list_mlb_search_adv.php
+++ b/apps/maarch_entreprise/indexing_searching/documents_list_mlb_search_adv.php
@@ -309,8 +309,9 @@ if ($mode == 'normal') {
         if ($_REQUEST['order_field'] == 'alt_identifier') {
             $orderstr = 'order by order_alphanum(alt_identifier)'.' '.$order;
         } else if ($_REQUEST['order_field'] == 'priority') {
+            $where_request .= ' and '.$view.'.priority = priorities.id';
             $select['priorities'] = ['order', 'id'];
-            $orderstr = 'order by (select priorities.order from priorities where priorities.id = priority) '.$order;
+            $orderstr = 'order by priorities.order '.$order;
         } else {
             $orderstr = 'order by '.$order_field.' '.$order;
         }