Fix sort on natural order

This commit is contained in:
Laurent Destailleur (aka Eldy)
2025-01-23 23:41:51 +01:00
parent 48190b39de
commit 58b9fac4b5

View File

@@ -1437,7 +1437,7 @@ class FormFile
//var_dump($sortfield.' - '.$sortorder);
if ($sortfield && $sortorder) { // If $sortfield is for example 'position_name', we will sort on the property 'position_name' (that is concat of position+name)
$filearray = dol_sort_array($filearray, $sortfield, $sortorder);
$filearray = dol_sort_array($filearray, $sortfield, $sortorder, 1);
}
}