ZenphotoCMS Forum
sort by ID bug? - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: sort by ID bug? (/thread-3245.html)



sort by ID bug? - fakestar - 2008-07-06

i'm trying to show the images of an album sorted by ID desc.
Latest images first. Seems it's not working.

it is showing the oldest first.




sort by ID bug? - krainbolt - 2008-07-06

If you want to sort your images with latest showing first, you should be sorting by Date, not ID. Sorting by ID causes Zenphoto to sort by date uploaded, not date created.




sort by ID bug? - fakestar - 2008-07-06

Not true what you said.

If i upload one image to an album, it increase the ID in database.
so if i want to show by ID desc, the last upload show first.
But it's not working here.

If i chose the date, it's not the upload date. cause i take a look in database and i got one image with this date 2008-06-15 00:00:00, but i upload it today.

Anyone can help me?




sort by ID bug? - sbillard - 2008-07-07

In answer to your first question. Change the sort direction. Latest first would require the order to be descending.




sort by ID bug? - fakestar - 2008-07-07

sbillard, it is in options>image display>Sort images by:>ID>Descending right?
If yes, already checked.
I add an image to album, it appears on last thumbnail.
Already refresh the database and clear cache.

Can be different php configuration? (I'm testing in localhost using wamp)


LOL i was typing this and i saw the menu option "Sort album", so forget all about i written above. Now it's working like a charm.

And thanks to make a near perfect photo album. I'm having fun modifying the layout ^^

Thanks!