I would like to sort images by ID (Descending) so that the newest additions show up on top. I have changed the following admin options, and images are not showing up in the correct order on the front-end gallery or back-end admin area.
A. Admin > Options > Image > Sort images by: ID (Descending)
B. Admin > Albums > Album > Sort images by: ID (Descending)
C. Admin > Albums > Images > Display images by: ID (Descending)
Not only are images not displaying correctly by ID, there they won't change display order at all, regardless of sort option selected (date, filemtime, name, etc.). I have cleared browser cache, history, cookies, etc. I have refreshed the database, purged cache, etc. phpMyAdmin displays all information in zp_images table correctly.
Any idea what is causing this problem?
Thanks.
Comments
Btw, C. is only a setting for the backend display, no sort order for the front end.
CORRECTION: My browser cache was playing tricks on me this time. It does work as expected for me.
On the back end, I would expect the image list to resort itself when I select a new sort order. The page reloads but the images do not resort.
Likewise on the front end where I'm not able to change the sort order with any of the options (date, name, ID, etc.) despite resetting image order to default to "gallery default image sort order".
BTW, I'm using version 1.2.6 [4335].
The line in zp-config.php is:
`if (!defined('CHMOD_VALUE')) { define('CHMOD_VALUE', 0777); }`
This correction resolved my gallery sort problems.
I have only created one album so far and uploaded some hundred or so images to it via FTP. They showed up correctly in the album and the date field for each record in the image table is populated with the correct values but I cannot change the sort order to Date or anything else for that matter.
No matter what I set the sort order to, the images always display in a fixed, apparently random order. I've tried setting the order in Admin > Options > Image > Sort images by and in Admin > Albums > Album-Name > Sort images by and I've also tried using the drag and drop manual sort and that also silently fails (appears to work but album sort order is unchanged).
I've looked at the albums table in phpMyAdmin and the fields sort_type (empty), subalbum_sort_type (empty), sort_order (null), image_sortdirection (0) and album_sortdirection (0) are not being updated by the admin control panel (current values in parenthesis). No matter what I do, their values don't update. The MySQL user has full control over the ZP database.
I'm tearing my hair out over this one and just can't seem to work it out so any advice would be appreciated, thanks.
[edit to add] I should probably point out that this happens with the default theme and all others...
I looked in my phpMyAdmin, and all of my sort tables are the same as JeremyK's. I have also tried refreshing the database and metadata, but this doesn't do anything. Any suggestions?