sort order of duplicate files is not stable/predictable

Bug #577480 reported by Oliver Gerlich
10
This bug affects 1 person
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
ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2
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

Revision history for this message
Oliver Gerlich (ogerlich) wrote :
Revision history for this message
Oliver Gerlich (ogerlich) wrote :

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.

Revision history for this message
Martin Olsson (mnemo) wrote :

Bug repro on SVN trunk. Forwarded to developers.

Changed in shotwell (Ubuntu):
status: New → Confirmed
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
Revision history for this message
Omer Akram (om26er) wrote :

shotwell 0.8.1 is now in Natty which fixes this issue

Changed in shotwell (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.