diff --git a/htdocs/societe/document.php b/htdocs/societe/document.php index fb1159f1630..d7a8f282270 100644 --- a/htdocs/societe/document.php +++ b/htdocs/societe/document.php @@ -130,7 +130,7 @@ if ($socid > 0) // Construit liste des fichiers - $filearray=dol_dir_list($upload_dir,"files",0,'','\.meta$',$sortfield,(strtolower($sortorder)=='desc'?SORT_ASC:SORT_DESC),3); + $filearray=dol_dir_list($upload_dir,"files",0,'','\.meta$',$sortfield,(strtolower($sortorder)=='desc'?SORT_ASC:SORT_DESC),1); $totalsize=0; foreach($filearray as $key => $file) {