2
0
forked from Wavyzz/dolibarr

Fix: Restore sort feature. Still did not see why previous commit is a

bug fix of dolibarr bug.
This commit is contained in:
Laurent Destailleur
2014-09-17 17:49:39 +02:00
parent c6b5d0f96c
commit f0ebd7721d

View File

@@ -1325,7 +1325,7 @@ function getListOfModels($db,$type,$maxfilenamelength=0)
if (! $tmpdir) { unset($listofdir[$key]); continue; }
if (is_dir($tmpdir))
{
$tmpfiles=dol_dir_list($tmpdir,'files',0,'\.od(s|t)$');
$tmpfiles=dol_dir_list($tmpdir,'files',0,'\.od(s|t)$','','name',SORT_ASC,0);
if (count($tmpfiles)) $listoffiles=array_merge($listoffiles,$tmpfiles);
}
}