Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to set a manual shelf sort order #5209

Open
1 task done
Extrapilot1 opened this issue Sep 19, 2024 · 1 comment
Open
1 task done

Ability to set a manual shelf sort order #5209

Extrapilot1 opened this issue Sep 19, 2024 · 1 comment

Comments

@Extrapilot1
Copy link

Describe the feature you'd like

I would like to see some control over how shelves are sorted, other than the existing alphabetical or creation date.

Describe the benefits this would bring to existing BookStack users

For many of us, shelves are not quite broad enough for categorization. Reasonable people could disagree about how effective it is to broaden the shelf concept (i.e. as with school libraries- where you may have a Bio/Sci library, a Poly Sci library etc) to limit shelves, vs having more broad Shelf content (where a Shelf might end up with books that arent all that closely related in some cases). But for many of us, we are using Bookstack for research data compilation, or business info etc, where it would be convenient to display certain shelves first (where they represent a major project, or something less generic than other shelves (which may contain archive/reference info etc).

It seems to me that since there is already a method which permits sort based on creation date, the idea of forcing the sort as alphabetical is permitted an exception. And while I see less upside in sorting by creation date, its just an option available to users who may need it. Im thinking it wouldnt be so difficult to add, say, a list order value to the Chapter properties. Or perhaps a Group order would be even better, where if you want to be sure that, say, a parent entity is always shown first, it is Group A. If there are multiple other shelves that are higher priority/use, they could be group B (say, 5 of those, where the sort option would be by group, and within that, alphabetical). It adds a single 'order by' term to the query, and if there is no entry used for Group, it is simply ignored since all shelves would have equal group value...

Can the goal of this request already be achieved via other means?

I have not been able to find a way to manage this via the native capabilities of Bookstack. There isnt a provision as there is with books/chapters to set priority, and there isnt a top-level Sort option that supports anything but title (Alphabetical) or creation date. Absent an option to sort by tag or group ID, or something more native (as with books/chapters), about the only option is to use group letters as part of the title as (A) Suppliers, (B) Corporate etc. But that is an ugly workaround (not attractive, doesnt scale, where the addition of a shelf you want between A and B requires a manual cascade of changes etc.

Have you searched for an existing open/closed issue?

  • I have searched for existing issues and none cover my fundamental request

How long have you been using BookStack?

1 to 5 years

Additional context

No response

@ssddanbrown
Copy link
Member

Thanks for the request @Extrapilot1. This is closely related to issue #180.
I'm going to update the request title to be specific to allowing manual shelf ordering since some general ordering options already exist.

@ssddanbrown ssddanbrown changed the title Ability to sort and/or group shelves Ability to set a manual shelf sort order Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants