janeczku / calibre-web

:books: Web app for browsing, reading and downloading eBooks stored in a Calibre database
GNU General Public License v3.0
12.69k stars 1.33k forks source link

[Request] Sort by date added also for shelves #3003

Open enaloha opened 7 months ago

enaloha commented 7 months ago

Is your feature request related to a problem? Please describe. I love how the books are sorted by Date added as default. However, this does not seem to apply to books added to a shelf and I wish it would behave just like the admin view. Right now, I have to go to the shelf, activate manual sort, then scroll all the way down to select the book and drag it all the way back up. And finally scroll all the way down to Save it.

Describe the solution you'd like Simply mirror the behavior for the full book list also for the shelves.

Describe alternatives you've considered Alternatively, add a sort button to allow sorting by date added to all views/shelves

Additional context not really needed.

Thank you for making this amazing utility!!!

OzzieIsaacs commented 1 month ago

So the request is to have a button for "date the book was added to shelf" Because the button, book date and and added to calibre database are already present. grafik

enaloha commented 1 month ago

Thanks for the clarification. The problem is that the sorting when selecting either of the arrows you show never reflects the "date added". The first arrow theoretically should sort according to the "date added", but I don't think it does. If I add a book to the shelf, it ends up at the very bottom of the list and I have to manually drag it up all the way to the top to get it to show up first. I have no idea what exactly the second arrow's sorting does. It does not seem to sort according to "date added". Also, why does the Enable Change Order button not stay enabled once enabled?

OzzieIsaacs commented 1 month ago

The Date added button sorts according to date added to the database (I’ll additionally check if there wrong)

enaloha commented 1 month ago

And it actually works fine for the admin and the whole book database. It just does not work for the shelves. I will try to verify this again since I last tried it, but it always just ends up at the bottom of the list in every shelf I add a book to.

Edit: I just tried it and it seems to work now. This is really strange, since in the past I had always had to manually drag the last added book in the shelf to the top. I'm stumped why it all of a sudden seems to working. Anyway, I'm happy that it works as intended now.

OzzieIsaacs commented 1 month ago

Please update to the newest nightly version. There are 2 new buttons to search for "date book added to shelf"

OzzieIsaacs commented 1 month ago

Also, why does the Enable Change Order button not stay enabled once enabled?

That's a good question. I think I was a worse programmer in the past and it was to complicated for me, but while programming this I also stumbled on it. I have a look, if it's easy to change.

enaloha commented 1 month ago

thank you, you are amazing!!!

OzzieIsaacs commented 1 month ago

Please check the newest nightly version, the button status should now be saved

enaloha commented 1 month ago

Please check the newest nightly version, the button status should now be saved

Just updated and this is even better as the change order buttons are enabled by default. This is excellent. Mahalo from Hawaii