Issue Bug Closed

#76930Sorting by 'Last Modified' in Filelist not working properly

Thomas W. 07/04/16, 16:34 updated 04/01/20, 21:14

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

  1. Thomas W. changed priority Should have Must have 09/15/16, 16:58

  2. Marcus Schwemer commented 08/11/17, 10:12

    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. Riccardo De Contardi changed category 08/24/17, 17:29

  4. Gerrit Code Review pushed patch set 1 for master to change 63673 status New Under Review 03/10/20, 18:37

  5. Gerrit Code Review pushed patch set 1 for 9.5 to change 63735 03/14/20, 19:46

  6. Susanne Moog commented and changed status Under Review Resolved done 0 % 100 % 03/14/20, 20:00

    Applied in changeset commit:1d675cee3e59e5131bbf5057a387ab29aa03d464.

  7. Benni Mack changed status Resolved Closed 04/01/20, 21:14