[dolphin] [Bug 455315] New: Dolphin fails to sort by sub-second modification time

Arne Keller bugzilla_noreply at kde.org
Wed Jun 15 10:38:40 BST 2022


https://bugs.kde.org/show_bug.cgi?id=455315

            Bug ID: 455315
           Summary: Dolphin fails to sort by sub-second modification time
           Product: dolphin
           Version: 22.04.1
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: view-engine: details mode
          Assignee: dolphin-bugs-null at kde.org
          Reporter: arne.keller at posteo.de
                CC: kfm-devel at kde.org
  Target Milestone: ---

SUMMARY
If several files are modified in the same second, Dolphin will sort them by
name instead of modification time.

STEPS TO REPRODUCE
1. Open a terminal, navigate to some directory
2. Execute `touch file1; touch file3; touch file2`
3. Check that `stat file*` reports three different timestamps. You may need to
repeat step 2 if some are equal.
4. Open Dolphin in that directory
5. Switch to details view, sort by modification time

OBSERVED RESULT
Files are sorted by name

EXPECTED RESULT
Files are sorted by modification time

SOFTWARE/OS VERSIONS
Operating System: NixOS 22.05
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.3
Kernel Version: 5.10.118 (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
stat output (abridged):
File: file1
Modify: 2022-06-15 11:30:42.328851880 +0200
File: file2
Modify: 2022-06-15 11:30:42.330851877 +0200
File: file3
Modify: 2022-06-15 11:30:42.329851878 +0200

These code segments may be related:
https://invent.kde.org/system/dolphin/-/blob/698e25d8485b9b82ebd28eb9b1b2641bebb35d77/src/kitemviews/kfileitemmodel.cpp#L2055
https://api.kde.org/frameworks/kio/html/udsentry_8cpp_source.html#l00360

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the kfm-devel mailing list