#76930Sorting by 'Last Modified' in Filelist not working properly
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.
Reviews 2
Files 1
History 57
-
Thomas W. changed priority
Should haveMust have 09/15/16, 16:58 -
Marcus Schwemer commented 08/11/17, 10:12
-
Riccardo De Contardi changed category 08/24/17, 17:29
-
Gerrit Code Review pushed patch set 1 for master to change 63673 status
NewUnder Review 03/10/20, 18:37 -
Gerrit Code Review pushed patch set 1 for 9.5 to change 63735 03/14/20, 19:46
-
Susanne Moog commented and changed status
Under ReviewResolved done0 %100 % 03/14/20, 20:00Applied in changeset commit:1d675cee3e59e5131bbf5057a387ab29aa03d464.
-
Benni Mack changed status
ResolvedClosed 04/01/20, 21:14
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