Bug #2728

Incorrect sorting of photos

Added by Vera Yin over 2 years ago. Updated 22 days ago.

Status:Invalid Start date:10/25/2010
Priority:High Due date:
Assignee:Eric Gregory % Done:

0%

Category:-
Target version:0.10
Keywords:

Description

Reported at https://bugs.launchpad.net/ubuntu/source/shotwell/bug/665602

I have a collection of photos (about 6000), and I've noticed that the outcome of sorting depends on what sorting was selected before, and the sorting isn't functioning correctly in general.

Most of the time I want the photos to be sorted by date, but few of them are not set to correct positions and plaed to the very end of the list.

But if I first choose to sort photos by rating (no photos have ratings btw), and then by datethey seem to be at correct positions.

I believe the sorting algorithm should be revised.

History

Updated by Adam Dingle over 2 years ago

  • Target version set to 0.9

Updated by Adam Dingle over 2 years ago

This was also reported recently on the Shotwell mailing list:

http://lists.yorba.org/pipermail/shotwell/2011-January/001665.html

Updated by Adam Dingle over 2 years ago

In the current trunk, I'm not able to reproduce this problem as described athttps://bugs.launchpad.net/ubuntu/source/shotwell/bug/665602using the test database posted there.

Jim, you posted on that ticket saying you could reproduce the problem. Do you still see it with the current trunk?

Updated by Adam Dingle over 2 years ago

  • Subject changed from Incorrect sorting of photos to [norepro] Incorrect sorting of photos

Updated by Adam Dingle over 2 years ago

  • Status changed from Open to 5
  • Resolution set to duplicate
  • % Done changed from 0 to 100

On the downstream bug it's apparent that some dates involved are before 1969. Shotwell is known not to work with such dates – see#3040. So I'm going to mark this as a duplicate of that bug.

Updated by Adam Dingle about 2 years ago

  • Status changed from 5 to 4
  • Resolution deleted (duplicate)
  • % Done changed from 100 to 0
  • Target version changed from 0.9 to 0.10
  • Subject changed from [norepro] Incorrect sorting of photos to Incorrect sorting of photos

A user downstream has said they're seeing this with no dates prior to 2004. So maybe this isn't the same as#3040after all, and maybe with that user's help we can finally get a reproducible case. Reopening.

Updated by Johan - about 2 years ago

Replying to [comment:5 adam]:

In the current trunk, I'm not able to reproduce this problem as described athttps://bugs.launchpad.net/ubuntu/source/shotwell/bug/665602using the test database posted there.

Jim, you posted on that ticket saying you could reproduce the problem. Do you still see it with the current trunk?

Possibly caused by several files having the same timestamp (don't know if seconds are truncated internally, but iirc they don't show in photo properties), in which case photo ordering is affected by previous sorting order.

For me it would be best if sorting was done by file name in case timestamp equals, as this would get them right.

Updated by Eric Gregory about 2 years ago

Could this be a duplicate of ticket #3539?

Updated by Eric Gregory about 2 years ago

  • Assignee changed from Anonymous to Eric Gregory

I can still reproduce this with the provided photos/db on Launchpad. Investigating…

Updated by Eric Gregory about 2 years ago

The reproduction has to do with the fact that three of the photos are pre-epoch. Remove those photos, and the others sort correctly.

We'll wait and see if the downstream user who reports the issue with new photos has a reproduction for us.

Updated by Eric Gregory about 2 years ago

  • Resolution set to worksforme
  • % Done changed from 0 to 0

Could not reproduce in trunk with Nattgew's sample data on Launchpad, but could repro in 0.9.2. Going to mark this one as worksforme.

Updated by Charles Lindsay 22 days ago

  • Status changed from 5 to Invalid

Also available in: Atom PDF