Skip to content

Commit

Permalink
Fix sort on natural order
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jan 23, 2025
1 parent 48190b3 commit 58b9fac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/class/html.formfile.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1437,7 +1437,7 @@ public function list_of_documents($filearray, $object, $modulepart, $param = '',

//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);
}
}

Expand Down

0 comments on commit 58b9fac

Please sign in to comment.