Automatic sort order not working #1565

Open
opened 2026-10-05 00:48:32 +02:00 by adam · 2 comments
Owner

Hallo
I just installed a clean and simple Piwigo 13.1 on my Ubuntu 18.04 LTS with PHP 8.0.25
I added two fotos into a "Testalbum" pic1.jpg and pic2.jpg
When I go to Album > Manage > Testalbum > Edit album > Photos sort order
I can check automatic order > File name Z>A > Save Settings
But still I have pic1.jpg first, not pic2.jpg and I always read "Manual order" over my pics, never "Automatic order".
Here a screenshot:

grafik

I dont find a way, how this automatic sort would work.
I noticed that issue, when I uploaded a bunch of fotos to a gallery and they were "Kraut und Rüben" (totally unsorted) and I didnt get them to an alphabetic order at all.
So I created this two-pic-example with a fresh install.

Maybe there is a way to make the automatic sorting work and I am just too blind to find, but at the moment it seems like a bug to me.
Thank, frank

Hallo I just installed a clean and simple Piwigo 13.1 on my Ubuntu 18.04 LTS with PHP 8.0.25 I added two fotos into a "Testalbum" pic1.jpg and pic2.jpg When I go to Album > Manage > Testalbum > Edit album > Photos sort order I can check automatic order > File name Z>A > Save Settings But still I have pic1.jpg first, not pic2.jpg and I always read "Manual order" over my pics, never "Automatic order". Here a screenshot: ![grafik](https://user-images.githubusercontent.com/927269/201930567-6302c981-7442-4626-814f-a84519f244f5.png) I dont find a way, how this automatic sort would work. I noticed that issue, when I uploaded a bunch of fotos to a gallery and they were "Kraut und Rüben" (totally unsorted) and I didnt get them to an alphabetic order at all. So I created this two-pic-example with a fresh install. Maybe there is a way to make the automatic sorting work and I am just too blind to find, but at the moment it seems like a bug to me. Thank, frank <!-- github-sync-id:1449785482 -->
Author
Owner

I've noticed the same thing. I have the default set to Date created, old -> new and that's fine. There's one album I want set to Date created, new -> old; sorting on the album page works fine, but I want it defaulted to that sorting for anyone who clicks on that album. Whenever I go to change the sorting for the album in the admin settings, the sorting option never sticks and remains on the site default sorting.

I've noticed the same thing. I have the default set to `Date created, old -> new` and that's fine. There's one album I want set to `Date created, new -> old`; sorting on the album page works fine, but I want it defaulted to that sorting for anyone who clicks on that album. Whenever I [go to change the sorting for the album](https://files.catbox.moe/8xoc4k.webm) in the admin settings, the sorting option never sticks and remains on the site default sorting. <!-- github-comment-id:3165505266 -->
Author
Owner

Not working for me either as of 15.6.0. It looks like if I save it isn't persisting to the database, and if I change the value in the database then it isn't even used to sort the album anyway.

Not working for me either as of 15.6.0. It looks like if I save it isn't persisting to the database, and if I change the value in the database then it isn't even used to sort the album anyway. <!-- github-comment-id:3238020621 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#1565