Breadcrumb books & shelves lists are ordered by id not name #4492

Closed
opened 2026-02-05 09:00:03 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @melat0nin on GitHub (Feb 28, 2024).

Describe the Bug

The order of books within the breadcrumb dropdowns (i.e. when you click the arrow) is done by the books' id, rather than by name (or any other method). This is counter-intuitive if the books weren't added to the instance in alphabetical order.

Steps to Reproduce

  1. Create >1 book, using names in non-alphabetical order (i.e. 'Beta Book' then 'Alpha Book')
  2. Within a book, click the drop-down in the breadcrumbs to show the other books at the same level
  3. Observe that they aren't alphabetical

Expected Behaviour

Either the drop-down should by default order the books alphabetically, or there should be an option to select the ordering (perhaps manually, in line with the sorting available for chapters/pages within books).

Screenshots or Additional Context

No response

Browser Details

No response

Exact BookStack Version

v23.12.2

Originally created by @melat0nin on GitHub (Feb 28, 2024). ### Describe the Bug The order of books within the breadcrumb dropdowns (i.e. when you click the arrow) is done by the books' id, rather than by name (or any other method). This is counter-intuitive if the books weren't added to the instance in alphabetical order. ### Steps to Reproduce 1. Create >1 book, using names in non-alphabetical order (i.e. 'Beta Book' then 'Alpha Book') 2. Within a book, click the drop-down in the breadcrumbs to show the other books at the same level 3. Observe that they aren't alphabetical ### Expected Behaviour Either the drop-down should by default order the books alphabetically, or there should be an option to select the ordering (perhaps manually, in line with the sorting available for chapters/pages within books). ### Screenshots or Additional Context _No response_ ### Browser Details _No response_ ### Exact BookStack Version v23.12.2
OVERLORD added the 🐛 Bug label 2026-02-05 09:00:03 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Mar 9, 2024):

Thanks for reporting @melat0nin.
This has been fixed in b7d4bd5bce, with tests to cover, to ensure name order is used for default (Non-shelf context) book and shelf lists.

This will be part of the next patch release.

@ssddanbrown commented on GitHub (Mar 9, 2024): Thanks for reporting @melat0nin. This has been fixed in b7d4bd5bcef09ff20d08626f943d707c1e0f175e, with tests to cover, to ensure name order is used for default (Non-shelf context) book and shelf lists. This will be part of the next patch release.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#4492