Sorting by 'Last Modified' in Filelist not working properly
When I use 'Last Modified' to sort a Filelist the resulting list is not in the expected order - see attached Screen.
I found this behaviour on several TYPO3-7.6.9 installations.
The request seams to use the timestamp rather than the 'modification_date' : typo3/index.php?M=file_FilelistList& ... &SET[sort]=tstamp
But also taken this into account the ordering is not in a proper order.
#2 Updated by Marcus Schwemer almost 2 years ago
this issue is still present in version 8.
Reason for this ist that the "modification_date" set in the database is used for display. But the sorting is based on the files mtime.
Sorting is defined in \TYPO3\CMS\Core\Resource\Driver\LocalDriver::sortDirectoryEntries -> line 598 => tstamp == mtime
Output is defined in \TYPO3\CMS\Filelist\FileList::formatFileList -> line 675
We should either fix the output or modify the sorting.
Which way the preferred way to fix this?