[wp-trac] [WordPress Trac] #17485: Sort Order by Date in WP Gallery resorts to order by ID

WordPress Trac wp-trac at lists.automattic.com
Sun Jun 19 16:26:40 UTC 2011


#17485: Sort Order by Date in WP Gallery resorts to order by ID
-----------------------------------+-----------------------------
 Reporter:  nrajesh                |       Owner:  dd32
     Type:  defect (bug)           |      Status:  reopened
 Priority:  normal                 |   Milestone:  Future Release
Component:  Gallery                |     Version:  3.1.2
 Severity:  normal                 |  Resolution:
 Keywords:  3.3-early westi-likes  |
-----------------------------------+-----------------------------

Comment (by westi):

 Replying to [comment:14 scribu]:
 > westi, consider the case where some photos have exif data, while others
 don't.
 >
 > I agree with azaozz that labeling "Sort by: uploaded time" is the best
 approach for this ticket.

 The best approach to this problem is to change our sorting when you click
 this option to post_date.

  * It has no affect on people who are not correcting the date/time
  * It makes the feature work as intended for those who do.

 Replying to [comment:15 scribu]:
 > That said, I do like the idea of being able to order photos based on the
 date they were taken, but only where galleries are concerned. If we were
 to automatically set the post_date based on EXIF data, it would affect the
 listing in the admin as well.
 >
 > So, I think this should be discussed more thoroughly in a separate
 ticket.

 The EXIF data is a tangential related issue which I agree should be on a
 separate ticket.

 Replying to [comment:16 azaozz]:
 > Replying to [comment:13 westi]:
 > > I think in general upload time and creation time for photos are not
 the same.
 > >
 > > I think more people upload photos they took hours/days/weeks in the
 past than upload to WordPress straight from there camera.
 >
 > Right, didn't explain this well. When taking photos the camera saves the
 files with sequential names. Later when transferring the photos to a PC or
 uploading them directly from the memory card they are still sorted in that
 sequence and they are usually uploaded in the same sequence. So the upload
 time is not the same as creation time, but the sequence is usually the
 same.
 >
 > > We can do that ... but ... sort by date the photo was taken is more
 useful to a Photoblogger than sort by upload time.
 >
 > Agree, but currently we support sorting by upload time, we would need to
 correctly describe that.
 >

 As I said above I think the best solution is s/ID/post_date/ because that
 gives the best solution for both use cases without cluttering the UI.

 Changing it to say sort by upload date just makes it lamer IMHO.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17485#comment:17>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list