Bug 506070 - Incorrect sorting order in Gwenview
Summary: Incorrect sorting order in Gwenview
Status: CONFIRMED
Alias: None
Product: gwenview
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-23 19:56 UTC by Reika
Modified: 2025-08-18 11:52 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
The difference between sort order in Dolphin and Gwenview (204.81 KB, image/jpeg)
2025-06-23 19:56 UTC, Reika
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Reika 2025-06-23 19:56:08 UTC
Created attachment 182574 [details]
The difference between sort order in Dolphin and Gwenview

SUMMARY
I have a folder with images sorted in Dolphin by the time of when the contents were created/modified. In Dolphin the sorting order appears correctly. Gwenview correctly follows this property of the folder and sorts images by the same order, except certain images which always get misplaced. 
Investigating the issue I found that the affected images come with attached EXIF and XMP metadata, which lists a different time of change/creation than in the system and Gwenview apparently prioritizes those extra metadata entries instead of the system ones. 
This behaviour is unexpected and unwanted, because it differs from the Dolphin's sorting order, which uses the system's change/creation timestamps. It also contradicts user expectations: the time of creation/change of the file is now, not some invisible entry in metadata.

STEPS TO REPRODUCE
1. Get a folder with images that contain images without EXIF/XMP metadata (likely any images), and sort it in Dolphin by modified/created date.
2. Download the picture from https://www.artstation.com/artwork/qnqQn and put it in the same folder with images. Its modified/created property will be set to now and it should appear last.
3. Open it in the Gwenview and see that the downloaded picture's sorting order is not last, but rather it is sorted as if its modified/created property was 2017 (assuming that other images in the test folder are newer than 2017).

OBSERVED RESULT
The picture in Gwenview is sorted out of order (by creation/modified date) and is placed as if its modified/created property was 2017.

EXPECTED RESULT
The picture in Gwenview should be sorted in the same way as in Dolphin.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: ROSA Fresh 13, also checked on AltLinux Workstation 11 K
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.8.3

ADDITIONAL INFORMATION
Attached the screenshot