Project

General

Profile

Actions

Bug #76930

closed

Sorting by 'Last Modified' in Filelist not working properly

Added by Thomas W. almost 8 years ago. Updated about 4 years ago.

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

100%

Estimated time:
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.


Files

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

Updated by Thomas W. over 7 years ago

  • Priority changed from Should have to Must have
Actions #2

Updated by Marcus Schwemer over 6 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

Actions #3

Updated by Riccardo De Contardi over 6 years ago

  • Category set to Backend User Interface
Actions #4

Updated by Gerrit Code Review about 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

Actions #5

Updated by Gerrit Code Review about 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

Actions #6

Updated by Susanne Moog about 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #7

Updated by Benni Mack about 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF