Piwigo / piwigo-flutter-app

Piwigo mobile application for Android
GNU General Public License v2.0
82 stars 26 forks source link

Honour server image sort order #155

Closed roydenyates closed 1 year ago

roydenyates commented 1 year ago

Albums are presented in the order sent by server.

Images are effectively resorted according to piwigo-ng settings. Yet there is no option to honour server order, which cripples albums set with manual sort order. There can be good reasons why that is preferred.

Is it possible for flutter to accept the server's view of the world ? :-)

remi-martin commented 1 year ago

Hi, thanks for your feedback.

It seems that the API of Piwigo doen't handle album sorting on fetch. To sort images I use the order property, but it is not available for albums.

However, the API returns all the albums without pagination, so I can sort and filter them easily. From what I can see, these are the sorting conditions available in a Piwigo:

Is that alright ?

roydenyates commented 1 year ago

I expressed myself poorly - sorry.

I am happy that piwigo-ng presents the albums in the order they are set on the server. Admittedly, having the option to sort them within piwigo-ng is not a bad idea at all.

I was focussing on image order. You correctly give the sorting options in Piwigo but omitted the option for manual sort order. That sets how a visitor sees the album pictures in browser. My use has images that are best presented in an order not set by name or date but say, by content sequences that I choose as the best for the album.

So it is image order that is of concern for me. Seeing the album contents in piwigo-ng as one does in browser with order set by the gallery admin.

remi-martin commented 1 year ago

Oh okay, so you are talking about a custom image order. Or, I think it is the default order given by the API. I'll add a "sort by default" option to see if it is the behavior you want :). It will be added for next update.

roydenyates commented 1 year ago

Oh okay, so you are talking about a custom image order. Or, I think it is the default order given by the API. I'll add a "sort by default" option to see if it is the behavior you want :). It will be added for next update.

Yes, a custom image order as set on the server. Thanks!!

roydenyates commented 1 year ago

This seems to work with the new "Manual Order" setting. Thank you!