sort order of duplicate files is not stable/predictable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Shotwell |
Fix Released
|
Unknown
|
|||
shotwell (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
Binary package hint: shotwell
In my photo collection there are a few duplicate photos, from importing the same photo twice (actually they were imported with F-Spot on Gutsy, which didn't weed out duplicates). The photos are named eg. DSCF0004.JPG and DSCF0004-1.JPG ; the first one I manually rotated but the second one is not rotated.
However, in the thumbnail view Shotwell displays sometimes the rotated first and then the nonrotated, and sometimes the nonrotated first and then the rotated. That's because it sorts by exposure date, but the duplicates naturally have the same exposure date.
It would be nice if the sort order would be at least predictable, rather than random.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: shotwell 0.5.0+dfsg-1.1
ProcVersionSign
Uname: Linux 2.6.32-22-generic i686
Architecture: i386
Date: Sat May 8 17:04:45 2010
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
ProcEnviron:
LANG=de_DE.UTF-8
SHELL=/bin/bash
SourcePackage: shotwell
Changed in shotwell: | |
status: | Unknown → New |
Changed in shotwell: | |
status: | New → Confirmed |
Changed in shotwell (Ubuntu): | |
status: | Confirmed → Triaged |
importance: | Undecided → Low |
importance: | Low → Medium |
tags: | added: patch |
tags: |
added: patch-forwarded-upstream removed: patch |
Changed in shotwell (Ubuntu): | |
importance: | Medium → Low |
Changed in shotwell: | |
status: | Confirmed → Fix Released |
Here's a patch that fixes the problem for me. If two photos have same exposure time during sorting, it falls back to comparing titles. Not sure if there's a better photo attribute that can be used as fallback, though.