Bug #76930

Sorting by 'Last Modified' in Filelist not working properly

Added by Thomas W. about 3 years ago. Updated almost 2 years ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2016-07-04
Due date:
% Done:

0%

TYPO3 Version:
7
PHP Version:
5.5
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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.

SortingFilelist.png View (17.4 KB) Thomas W., 2016-07-04 16:34

History

#1 Updated by Thomas W. almost 3 years ago

  • Priority changed from Should have to Must have

#2 Updated by Marcus Schwemer almost 2 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

#3 Updated by Riccardo De Contardi almost 2 years ago

  • Category set to Backend User Interface

Also available in: Atom PDF