BookStack icon indicating copy to clipboard operation
BookStack copied to clipboard

Automatic sorting, after creating a new page/chapter

Open Biepa opened this issue 5 years ago • 2 comments

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.

Biepa avatar Apr 26 '20 20:04 Biepa

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.

Rumcajsev avatar Oct 19 '20 10:10 Rumcajsev

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

Stoicmaverick avatar Jun 03 '22 18:06 Stoicmaverick

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.

SteveDinn avatar Nov 19 '22 16:11 SteveDinn

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

DanMundy avatar Jan 18 '23 04:01 DanMundy

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 avatar Jan 21 '23 23:01 ssddanbrown