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 ;-) -- View this message in context: http://n2.nabble.com/Attachment-Order--tp2262602p2262602.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users