Bug #76930
closedSorting by 'Last Modified' in Filelist not working properly
100%
Description
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.
Files
Updated by Thomas W. about 8 years ago
- Priority changed from Should have to Must have
Updated by Marcus Schwemer over 7 years ago
Hi,
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?
Marcus
Updated by Riccardo De Contardi about 7 years ago
- Category set to Backend User Interface
Updated by Gerrit Code Review over 4 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63673
Updated by Gerrit Code Review over 4 years ago
Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63735
Updated by Susanne Moog over 4 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 1d675cee3e59e5131bbf5057a387ab29aa03d464.