Creating a file reference sorting not working
if I create a file reference as described in the doc (https://docs.typo3.org/typo3cms/FileAbstractionLayerReference/8.7/UsingFal/Examples/FileFolder/Index.html#creating-a-file-reference) and I want to also add a sorting. I added:
$data['sys_file_reference']['NEW' . $file->getUid()] = [ 'table_local' => 'sys_file', 'uid_local' => $file->getUid(), 'tablenames' => 'xxxxxx', 'uid_foreign' => $xxxx->getUid(), 'sorting_foreign' => $sorting, 'pid' => $xxxx->getPid() ];
The field in the sys_file_reference is always 1. If I change the order afterwards in the backend the foreign_sorting field is correct.
Thanks and kind regards,