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

Automatic sorting, after creating a new page/chapter #2065

Closed
Biepa opened this issue Apr 26, 2020 · 7 comments
Closed

Automatic sorting, after creating a new page/chapter #2065

Biepa opened this issue Apr 26, 2020 · 7 comments

Comments

@Biepa
Copy link

Biepa commented Apr 26, 2020

Describe the feature you'd like
To save the last used sorting on a book, so when a new page/chapter is created, the page/chapter is inserted at the right place and not at the end of the list.

Describe the benefits this feature would bring to BookStack users
No manual sorting after every new page/chapter.

Additional context
Another idea is a global option you can choose, for the default sort and then a "custom sorting" option on a book/chapter, so a manual sorting is still possible. But that's maybe a lot more work.

@Rumcajsev
Copy link

I agree. An example from my usage is having a new page for each retrospection, with date as a page name. It would be useful to automatically sort these - eg. by date of creation.

@Stoicmaverick
Copy link

I would really like to have the ability to order pages/books, as it would make finding specific pages much easier, paticularly on mobile, so you don't have to enlist your other hand to type out a search.

Maybe sorting options like Alphabetical, date accessed/created/edited, length. ect. I'm just a lowly soldering iron jockey, but I feel like this would be fairly simple to implement with low risk of bug introduction. I've seen several (MANY) requests for this, but I'd be willing to toss $10 in a bounty pool to have this implemented. (wait, can we start a bug/feature request bounty pool? I'm down.)

Also open in #180

@SteveDinn
Copy link

I'm planning to use a shelf / book as a blog, so it'd be super cool if I could automatically have books and pages sort in reverse-chronological order automatically.

@DanMundy
Copy link

I'd also like this.

The granular sorting options are really good and I don't want this functionality to go away. I think it's a good default.

But there are some books where I want automatic sorting, and I want the chapters at the top. Currently I do the following steps every single time I create a new page, and it seems like something that I should be able to automate:

  1. Click Sort
  2. Click "Sort by name"
  3. Click "Show chapters first"
  4. Scroll right down to the bottom
  5. Click Save

@ssddanbrown
Copy link
Member

If anyone is really desperate for this, I've written up a logical theme system customization that can achieve this: https://gist.github.com/ssddanbrown/78553a39d36187476283a00fd67ed3dc

@DanMundy This follows your defined logic.

@ssddanbrown
Copy link
Member

Thanks for the original request @Biepa, and thanks for the input from everyone else.

Within #5457 I have added "Sort Rules", which allows an admin to centrally define sort operations which can be applied as a default for new books, assigned to existing books by book editors, or be mass assigned via command line.

This will be part of the next feature release.
Since this should cover the fundamental request here, I'll go ahead and close this off.

@Biepa
Copy link
Author

Biepa commented Feb 11, 2025

Hey @ssddanbrown,
I don't use Bookstack currently. Not because I didn't liked but the usecase wasn't there anymore.
But I just wanted to thank you for building Bookstack and keep improving it over all the years.
Will come back whenever the need comes up again. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

6 participants