Attachment Order?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Attachment Order?

Stefan Woehrer
Hi,

Can somebody pls. explain to me how the Attachment list at the bottom of each page is sorted?


For example, this is the order of attachments on my page:
(Please take notice of the third attachment. I cannot figure out why it is at that place, because it was posted much later (excludes order by date). Order by file name could be excluded also if you look at the last three attachments)

2008-12-0612-00.jpg 1.1
PostedBy: xxx on 19/12/2008 (119kb )

2008-12-0512-00.jpg 1.1
PostedBy: xxx on 19/12/2008 (112kb )

2008-12-2812-00.jpg 1.1
PostedBy: xxx on 12/01/2009 (108kb )

2008-11-3012-00.jpg 1.1
PostedBy: xxx on 19/12/2008 (111kb )

2008-12-0412-00.jpg 1.1
PostedBy: xxx on 19/12/2008 (124kb )

----

The problem is that in a photo album the photos are shown in the very same (undefined?) order. I need to fix this asap. I've seen in the code that the document attachments (unsorted?) are taken and processed with a foreach loop. Can somebody please explain me how I can sort the collection by date before the loop is entered?

Thank you very much,
Steve ;-)
Reply | Threaded
Open this post in threaded view
|

Re: Attachment Order?

Stefan Woehrer
ok if anyone finds this post - here's the solution: http://n2.nabble.com/attachment-order-td1082690.html#a1082690

......too stupid to search properly ;-)