Book names are not sorted by name in shelves overview, when sorting by name #2689

Closed
opened 2026-02-05 04:48:18 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @jhrdt on GitHub (Mar 3, 2022).

Describe the Bug

The book names in the shelves overview are sorted by creation date instead of name (when sorting shelves by name).

Steps to Reproduce

  1. Create a shelf s
  2. Create a book Z in s
  3. Create another book A in s
  4. Go to shelves

Expected Behaviour

  • When looking at the shelves overview (in "List View" and "Sort by Name" is selected)
    • The book names should be sorted by name

Screenshots or Additional Context

grafik

Browser Details

No response

Exact BookStack Version

BookStack v22.02.1

PHP Version

7.4

Hosting Environment

Ubuntu LTS

Originally created by @jhrdt on GitHub (Mar 3, 2022). ### Describe the Bug The book names in the shelves overview are sorted by creation date instead of name (when sorting shelves by name). ### Steps to Reproduce 1. Create a shelf s 2. Create a book Z in s 3. Create another book A in s 4. Go to shelves ### Expected Behaviour * When looking at the shelves overview (in "List View" and "Sort by Name" is selected) * The book names should be sorted by name ### Screenshots or Additional Context ![grafik](https://user-images.githubusercontent.com/22557140/156568315-57969a62-6da0-4f0a-9910-0e082c1b4504.png) ### Browser Details _No response_ ### Exact BookStack Version BookStack v22.02.1 ### PHP Version 7.4 ### Hosting Environment Ubuntu LTS
OVERLORD added the 🐛 Bug label 2026-02-05 04:48:18 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Mar 3, 2022):

Hi @jhrdt,

The book names in the shelves overview are sorted by creation date instead of name

I don't think this is the case. Books within a shelf are generally sorted by their manually managed ordering.

I think expected behaviour here is a matter of opinion and expectations; Should the ordering of the shelves affect their contents or should the curated ordering be respected? I'm tempted to side upon the latter since that's the current functionality and otherwise the existing curation becomes tricky to achieve or becomes more redundant.

@ssddanbrown commented on GitHub (Mar 3, 2022): Hi @jhrdt, > The book names in the shelves overview are sorted by creation date instead of name I don't think this is the case. Books within a shelf are generally sorted by their manually managed ordering. I think expected behaviour here is a matter of opinion and expectations; Should the ordering of the shelves affect their contents or should the curated ordering be respected? I'm tempted to side upon the latter since that's the current functionality and otherwise the existing curation becomes tricky to achieve or becomes more redundant.
Author
Owner

@jhrdt commented on GitHub (Mar 3, 2022):

Hi @ssddanbrown ,

OK, this was as misunderstanding on my side. It wasn't obvious to me where the ordering comes from. Thank you.

@jhrdt commented on GitHub (Mar 3, 2022): Hi @ssddanbrown , OK, this was as misunderstanding on my side. It wasn't obvious to me where the ordering comes from. Thank you.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#2689