[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
Sat Jun 18 21:58:54 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 azaozz):

 Replying to [comment:11 westi]:
 > Note you can do: [gallery orderby="post_date"] at the moment in trunk so
 we could just hook the UI up to do that instead of [gallery orderby="ID"]
 >
 > EXPLAIN on both queries is the same:

 And the result of both queries is exactly the same :)

 The problem here seems to be that upload time is often the same as
 creation time for photos, but not always. So the users may get confused.

 Not sure it's good idea to set attachment creation time according to EXIF.
 IMO EXIF data belongs in postmeta.

 In any case we should expand the use of that data when available including
 rotating the image, (more?) camera details, creation time, etc. but that
 seems out of scope for this ticket.

 What we can do here is change the "Sort by: Date" to "Sort by: uploaded
 time" or similar which should remove any confusion.

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


More information about the wp-trac mailing list